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
This commit is contained in:
Andrew Pinski 2003-07-17 11:53:07 +00:00 committed by Andrew Pinski
parent ef292d4f65
commit d424f7ff66
2 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,21 @@
// 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;
}