Referencing a file static variable from an inline function
<p>Say you have a file example.h</p>

<pre><code>class example
{
public:
    int doStuff();
};
</code></pre>

<p>and a file example.cpp</p>

<pre><code>#include "example.h"
static const int data[] = {1, 2};

inline int doStuffImpl()
{
    return data[0] + data[1];
}

int example::doStuff()
{
    return doStuffImpl();
}
</code></pre>

<p>When I compile the equivalent on solaris using the native compiler, I get a linker error that it can't find the symbol 'data'. Is what I'm doing invalid?</p>
