re PR c++/49176 ([c++0x] valid code rejected with "error: uninitialized const")
PR c++/49176 * g++.dg/template/const5.C: New. From-SVN: r174356
This commit is contained in:
parent
1fbbe7d6b2
commit
69cf9a1cfe
@ -1,5 +1,8 @@
|
||||
2011-05-27 Jason Merrill <jason@redhat.com>
|
||||
|
||||
PR c++/49176
|
||||
* g++.dg/template/const5.C: New.
|
||||
|
||||
* g++.dg/cpp0x/enum18.C: New.
|
||||
|
||||
* g++.dg/cpp0x/lambda/lambda-nested4.C: New.
|
||||
|
12
gcc/testsuite/g++.dg/template/const5.C
Normal file
12
gcc/testsuite/g++.dg/template/const5.C
Normal file
@ -0,0 +1,12 @@
|
||||
// PR c++/49176
|
||||
// { dg-options -std=c++0x }
|
||||
|
||||
struct A { static int a(); };
|
||||
|
||||
template<int>
|
||||
struct B { static int const b; };
|
||||
|
||||
int f() { return B<0>::b; }
|
||||
|
||||
template<int I>
|
||||
int const B<I>::b=A::a();
|
Loading…
Reference in New Issue
Block a user