This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug Report
- To: <gcc-bugs at gcc dot gnu dot org>
- Subject: Bug Report
- From: Ben Hekster <heksterb at acm dot org>
- Date: Thu, 27 Jul 2000 11:12:23 -0700
[I'm resending this message because I think it was caught by your spam
filter the first time through.]
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
crash.C.gz