cc1plus internal compiler error only when compiling with -g
Alexandre Oliva
oliva@dcc.unicamp.br
Fri Jul 24 02:38:00 GMT 1998
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
More information about the Gcc-bugs
mailing list