[Bug c++/30962] cause compile error for "const anonymous class object"
gzljg at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 26 22:55:00 GMT 2007
------- Comment #2 from gzljg at hotmail dot com 2007-02-26 22:55 -------
Not sure what you mean by "MyAnonymous = {};" to initialize it... if change to:
const class { /* ....*/ } MyAnonymous = {};
will cause another error:
"MyAnonymous' must be initialized by constructor, not by '{...}'
--
gzljg at hotmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30962
More information about the Gcc-bugs
mailing list