Article View: gnu.gcc.bug
Article #956Abnormal program termination due to erroneous program
From: 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)
Technical Details
Message-ID:
<9208171440.AA25997@azu.informatik.uni-stuttgart.de>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!azu.informatik.uni-stuttgart.de!mattesShow Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!azu.informatik.uni-stuttgart.de!mattes From: mattes@azu.informatik.uni-stuttgart.de (Eberhard Mattes) Subject: Abnormal program termination due to erroneous program Message-ID: <9208171440.AA25997@azu.informatik.uni-stuttgart.de> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 17 Aug 1992 18:40:57 GMT Approved: bug-gcc@prep.ai.mit.edu Lines: 33