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]

Re: cc1plus internal compiler error only when compiling with -g


Dan Glastonbury <Dan.Glastonbury@adelaide.maptek.com.au> writes:

> class first { struct foo { }; struct bar : public foo { }
>   struct anotherStruct { void func(bar* parameter); };
>   anotherStruct* aMember;  // This line kills gcc
> };

Did you notice that a semicolon is missing after the declaration of
struct bar?  If you insert that semicolon, does the problem go away?

> Unfortunately gdb crashes.  Have I done something wrong?

Yup.

>> From the output of gcc -v I guessed that this is the way to run cc1plus.  

> dan@gauss[egcs-1.0.3a/objdir/gcc]> gdb-4.17 stage1/cc1obj 
                                                        ^^^
Then why did you run the Objective C compiler? :-)

-- 
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil



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