This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: cc1plus internal compiler error only when compiling with -g
- To: Dan Glastonbury <Dan dot Glastonbury at adelaide dot maptek dot com dot au>
- Subject: Re: cc1plus internal compiler error only when compiling with -g
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 24 Jul 1998 05:35:30 -0300
- Cc: egcs-bugs at cygnus dot com
- References: <199807240604.PAA08809@gauss.adelaide.maptek.com.au>
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