Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Robert L. McMillin
Wed, 15 Apr 1992 18:36
Garbage in causes a crash
Author: Robert L. McMillin
Date: Wed, 15 Apr 1992 18:36
Date: Wed, 15 Apr 1992 18:36
35 lines
1293 bytes
1293 bytes
The following code fragment causes GCC v2.0 to crash:
---
/*
* A test case to break the GNU C compiler...
*/
struct kaboom
{
unsigned char c[16];
};
volatile struct kaboom *k;
void
this_crashes_gnu_c ()
{
*k;
}
---
This occurs with any of the v2.0 compilers I've tried, both on the Sun
386i running SunOS v4.0 and on the Motorola Delta running SVR3.6. In
either case, the compiler dies with the following error message:
gcc: Internal compiler error: program cc1 got fatal signal 6
The above fragment doesn't really seem to mean anything (I caught it as
a result of a coding error on my part), but it does seem that the
compiler shouldn't die like this.
---
Robert L. McMillin | Voice: (310) 568-3555
Hughes Aircraft/Hughes Training, Inc. | Fax: (310) 568-3574
Los Angeles, CA | Internet: rlm@ms_aspen.hac.com
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads