------- Comment #3 from pinskia at gcc dot gnu dot org 2007-02-26 23:00 ------- (In reply to comment #2) > Not sure what you mean by "MyAnonymous = {};" to initialize it... if change > to:
You example which you gave works for me with that: const class { public: int foo() const { return 1; } } MyAnonymous = {}; int main() { return MyAnonymous.foo(); } [EMAIL PROTECTED]:~$ ~/x86-linux-4.0.2/bin/gcc t.cc [EMAIL PROTECTED]:~$ gcc t.cc Anyways this is not a GCC bug but rather you not knowing C++. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30962