Thread View: gnu.gcc.bug
1 messages
1 total messages
Started by Eberhard Mattes
Mon, 17 Aug 1992 18:40
Abnormal program termination due to erroneous program
Author: Eberhard Mattes
Date: Mon, 17 Aug 1992 18:40
Date: Mon, 17 Aug 1992 18:40
32 lines
1192 bytes
1192 bytes
The appended (erroneous) program causes cc1 of GCC 2.2.2 for 386 on
emx (under OS/2 2.0) to abort. Further simplification of the program
makes the problem disappear.
gcc -c bug.c
bug.c: In function `fun3':
bug.c.16: warning `return' with a value, in function returning void
Abnormal program termination
core dumped
------------------------------- cut here -------------------------------------
static int var1;
static int __inline__ fun1 (void)
{
return 0;
}
static int fun2 (void)
{
return (fun1 ());
}
static void fun3 (void)
{
return (var1++);
}
------------------------------- cut here -------------------------------------
Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
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