Article View: gnu.g++.bug
Article #826cc1plus gets fatal signal 6
From: Joe Sirott
Date: Wed, 19 Aug 1992 03:02
Date: Wed, 19 Aug 1992 03:02
33 lines
1933 bytes
1933 bytes
The following code fragment:
---------------------------------------------------------
extern "C" {
int abs(int);
}
class FrGlobal {
public:
static abs(int in) { return in > 0 ? in : -in; }
};
---------------------------------------------------------
causes the compiler to exit with fatal signal 6. Here is the complete
output from the compiler:
cd /home/chaos/sirott/crdtool/src/ui/data_browse_class/
make
rm -f test.o
gcc -c -g -v -I../include -I../include/guide_include -I../include/icons -I/usr/local/include -I/usr/openwin/include -I -I -I/usr/local/interviews/include test.C
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.2.2/specs
gcc version 2.2.2
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.2.2/cpp -lang-c++ -v -I../include -I../include/guide_include -I../include/icons -I/usr/local/include -I/usr/openwin/include -I -I -I/usr/local/interviews/include -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix -g test.C /usr/tmp/cca27375.i
GNU CPP version 2.2.2 (sparc)
/usr/local/lib/gcc-lib/sparc-sun-sunos4.1.1/2.2.2/cc1plus /usr/tmp/cca27375.i -quiet -dumpbase test.cc -g -version -o /usr/tmp/cca27375.s
GNU C++ version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
gcc: Internal compiler error: program cc1plus got fatal signal 6
*** Error code 1
make: Fatal error: Command failed for target `test.o'
Compilation exited abnormally with code 1 at Wed Aug 19 09:57:42
Technical Details
Message-ID:
<9208191702.AA27385@chaos.atmos.washington.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!atmos.washington.edu!sirottShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!atmos.washington.edu!sirott From: sirott@atmos.washington.edu (Joe Sirott) Subject: cc1plus gets fatal signal 6 Message-ID: <9208191702.AA27385@chaos.atmos.washington.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 19 Aug 1992 03:02:38 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 34