Commit 4be3d4fa by Jason Merrill

re PR c++/30301 (Invalid static member of anonymous class or union diagnosed too late)

	PR c++/30301
	* g++.dg/parse/unnamed2.C: New.

From-SVN: r208185
parent c3439626
// PR c++/30301
template<int T> struct A
{
union { static int i; }; // { dg-error "static data.*unnamed" }
};
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