mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-09 06:44:31 +08:00
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:
parent
ef292d4f65
commit
d424f7ff66
@ -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
|
||||
|
21
gcc/testsuite/g++.dg/init/init-ref4.C
Normal file
21
gcc/testsuite/g++.dg/init/init-ref4.C
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user