C++ initialization problem with nested constructors

Erik sigra@home.se
Tue Apr 17 19:05:00 GMT 2007


Stuart Brooks skrev:
> I have picked up what I think could be a parsing bug on gcc 3.3.3 to 
> do with nested constructors being evaluated as a function definition. 
> The stripped down code below fails to compile. I've had a look through 
> Stroustrup's 'The C++ Programming Language' and googled around this 
> but nothing jumped out at me. Constructing using = works.
I get the error on gcc 4.1.1. It looks like a bug. (Tell me the bug # so 
I can subscribe to it.)



More information about the Gcc-help mailing list