This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Bug Report


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]