Commit d424f7ff by Andrew Pinski Committed by Andrew Pinski

re PR c++/11384 (missing implicit instantiation of template static members)

2003-06-17  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/11384
        * g++.dg/init/init-ref4.C: New test.

From-SVN: r69510
parent ef292d4f
2003-06-17 Andrew Pinski <pinskia@physics.uc.edu>
PR c++/11384
* g++.dg/init/init-ref4.C: New test.
2003-07-16 Mark Mitchell <mark@codesourcery.com>
PR c++/11547
......
// Origin: dgregor@gcc.gnu.org
// PR c++/11384
// foo<int>::_S_something was not being emitted.
// { dg-do run }
template<typename T>
struct foo
{
static const T _S_something;
};
template<typename T>
const T foo<T>::_S_something = T();
int main()
{
const int* p = &foo<int>::_S_something;
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment