🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1335

Error internal compiler error. on gcc 2.3.1

#1335
From: Chuck Strickland
Date: Mon, 09 Nov 1992 22:07
49 lines
2424 bytes
 the following code produces an internal
 compiler error.

extern void _XFreeContextDB();

void testsub(
   )
{
int test;
         test = (int)_XFreeContextDB;
}


 this produces an internal compiler error.

 I derived this from mit/lib/X/Context.c source file.

gcc -v -c -fpic testit.c
Reading specs from /pub/local/gnu/lib/gcc-lib/sparc-sun-sunos412/2.3.1/specs
gcc version 2.3.1
 /pub/local/gnu/lib/gcc-lib/sparc-sun-sunos412/2.3.1/cpp -lang-c -v -undef -D__G
NUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun 
-D__unix testit.c /tmp/cca06496.i
GNU CPP version 2.3.1 (sparc)
 /pub/local/gnu/lib/gcc-lib/sparc-sun-sunos412/2.3.1/cc1 /tmp/cca06496.i -quiet 
-dumpbase testit.c -version -fpic -o /tmp/cca06496.s
GNU C version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
gcc: Internal compiler error: program cc1 got fatal signal 6

 I compiled against gcc 2.2.2 and got
% gcc -v -c -fpic  testit.c
Reading specs from /pub/local/gnu/lib/gcc-lib/sparc-sun-sunos412/2.2.2/specs
gcc version 2.2.2
 /pub/local/gnu/lib/gcc-lib/sparc-sun-sunos412/2.2.2/cpp -lang-c -v -undef -D__G
NUC__=2 -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun 
-D__unix testit.c /tmp/cca05997.i
GNU CPP version 2.2.2 (sparc)
 /pub/local/gnu/lib/gcc-lib/sparc-sun-sunos412/2.2.2/cc1 /tmp/cca05997.i -quiet 
-dumpbase testit.c -version -fpic -o /tmp/cca05997.s
GNU C version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
testit.c:1: `IPFOR' undeclared, outside of functions

-- 
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
Malcolm C. Strickland                 Martin Marietta Missle Systems
chuck-strickland@orl.mmc.com          mail point 170    
Phone: 407-356-7437                   pobox 555837
Fax:   407-356-5482                   orlando florida 32855-5837
*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*_*
Technical Details
Message-ID: <1992Nov9.220737.28761@iplmail.orl.mmc.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!orl.mmc.COM!chucks

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!orl.mmc.COM!chucks
From: chucks@orl.mmc.COM (Chuck Strickland)
Subject: Error internal compiler error. on gcc 2.3.1
Message-ID: <1992Nov9.220737.28761@iplmail.orl.mmc.com>
Sender: gnulists@ai.mit.edu
Organization: Martin Marietta
Distribution: gnu
Date: Mon, 9 Nov 1992 22:07:37 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 50