Bug Report

Ben Hekster heksterb@acm.org
Fri Jul 21 15:07:00 GMT 2000


Hi--

In porting gcc to MacOS, I have run into the a bug.  Under the MacOS port,
this results in an 'unmapped memory exception'; on a i586-linux-gnu machine,
the output is:

--
In file included from …/UHTTP.cp:26:
ß/UHTTP.h:95: Internal compiler error.
ß/UHTTP.h:95: Please submit a full bug report.
ß/UHTTP.h:95: See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport >
for instructions.
--

The Greek symbol prefixes are an artifact of my port.

    The failure is 100% reproducible on both machines.

    Attached is the preprocessed input that will cause the failure.  The gcc
version is 2.95.2, and the command line used to invoke the compiler is
simply:

    gcc crash.C

As far as I can see, the fault occurs in the program cc1plus, in file
decl.c, line 2863, function 'setup_class_bindings', near the middle.  At the
868th time this line is reached, the call to function 'lookup_member'
returns NULL.  This is eventually dereferenced, through
'pushdecl_class_level' and 'push_class_level_binding', causing the failure.

    Adding a test for a NULL return value, and returning from
'setup_class_bindings' if it is, eliminates the failure and apparently even
causes the compiler to complete.

Hope this helps,

Ben

-------------- next part --------------
A non-text attachment was scrubbed...
Name: crash.C.gz
Type: application/x-gzip
Size: 16036 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-bugs/attachments/20000721/3ea3ac96/attachment.bin>


More information about the Gcc-bugs mailing list