Red Hat Bugzilla – Bug 15476
g++: internal compiler error in scan_region (compiling hylafax)
Last modified: 2008-05-01 11:37:57 EDT
There is an utility in hylafax that cannot be built on pinstripe, while it
builds ok on rh61.
I assume it's a compiler bug since the compiler seems to say so; I don't
understand anything about compilers.
/usr/bin/g++ -D__ANSI_CPP__ -I. -I.. -I.././regex -I.././faxmail -
til -I/usr/include -g -O -c MsgFmt.c++
MsgFmt.c++: In method `fxStr MsgFmt::mapHeader (const fxStr &)':
MsgFmt.c++:68: Internal compiler error in scan_region, at except.c:2808
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
make: *** [MsgFmt.o] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/hylafax-cvs-
make: *** [default] Error 2
I'm using the hylafax source that comes with the latest srpm from
For your convenience I'm attaching a tar.gz with just the files needed to
reproduce the error.
tar zxvf test-dir.tar.gz
Created attachment 2096 [details]
Files needed to reproduce the compiler error (cd test-dir/faxmail;make)
I see now that I can compile it ok if I take "-O" out.
However, since rh61 can compile it with "-O", I still thinks it may be
considered a bug.
Yes, it is considered a bug.
BTW: -O2 and above works as well, it is just -O which ICEs.
I have distilled a small testcase from it which I'm submitting to gcc-patches,
and will try to debug it.
Fixed in gcc-c++-2.96-54