This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/30962] cause compile error for "const anonymous class object"



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]