Internal compiler error

Thomas Matelich tomsara@slip-stream.net
Tue Dec 1 10:49:00 GMT 1998


Jeffrey A Law wrote:

>   In message <3663285B.83582F6@slip-stream.net>you write:
>   > Could someone point me to a way to debug this error?
>   >
>   > tom> g++ -v
>   > Reading specs from
>   > /opt/gnu/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57/specs
>   > gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
>   >
>   > tom> make
>   >         g++  -DDEVELOPMENT_ONLY -Wall -W -Wno-return-type -Winline
>   > -Wcast-qual -frepo -finline-functions -D_NO_GLOBALS_ -D_HPUX_SOURCE
>   > -I/home/tom/local/eddy_dev/include -I/opt/gnu/include
>   > -I/opt/gnu/include/g++ -I/home/tom/local/eddy_dev/lib/utility_class_lib
>   > -L/opt/gnu/lib -c channels.cc
>   > ../../egcs/gcc/emit-rtl.c:2463: Internal compiler error in function
>   > add_insn_before
>   > *** Error exit code 1
> You need to first get the cpp output for this file.  The easiest way to do that
> is to add "-save-temps" to the command line usually used to build hat file.
>
> That will create a .i or .ii file which can be directly read by the compiler.
>
> Start up the compiler under the control of gdb (gdb cc1plus in this case)
>
> run it with the appropriate options (note -D -I and other cpp options are not
> necessary).  Debug as you would any other complex program.
>
> jeff

Is there a problem with using exception handling in the following format?

void func()
try
{
    //code that may throw exception
}
catch (exception& e)
{
    throw;
}

Because enclosing the try-catch block within another set of parentheses eliminated
my error.  One possible note of interest, this was in a template function.

--
Thomas O Matelich
Senior Programmer
Zetec, Inc.
tmatelich@zetec.com
tomsara@slip-stream.net






More information about the Gcc-bugs mailing list