[Bug c++/47450] [4.5/4.6/4.7 Regression] Anonymous top-level classes assigned to static members fail.
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 6 22:57:00 GMT 2012
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47450
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
Status|NEW |ASSIGNED
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-06 22:57:01 UTC ---
This is not valid code. The wording prohibiting a class-specifier in a type-id
was unclear in C++03, but was clarified by DR 686:
http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#686
More information about the Gcc-bugs
mailing list