This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/30962] cause compile error for "const anonymous class object"
- From: "gzljg at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2007 22:55:09 -0000
- Subject: [Bug c++/30962] cause compile error for "const anonymous class object"
- References: <bug-30962-13880@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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