Commit 69cf9a1c by Jason Merrill Committed by Jason Merrill

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
parent 1fbbe7d6
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.
......
// 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();
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