This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: C++ initialization problem with nested constructors
- From: Erik <sigra at home dot se>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 17 Apr 2007 16:44:47 +0200
- Subject: Re: C++ initialization problem with nested constructors
- References: <4624C6C2.9090009@cat.co.za>
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.)