Article View: gnu.g++.bug
Article #927g++ 2.2.2 bug: program cc1plus gets fatal signal 11
From: Rajive Joshi
Date: Wed, 09 Sep 1992 05:15
Date: Wed, 09 Sep 1992 05:15
62 lines
2251 bytes
2251 bytes
Hello!
The following code segment crashes the g++ 2.2.2 compiler--the program
cc1plus gets a fatal signal 11. However it compiles perfectly with
the AT&T's CC compiler.
-------------- sig11bug.cc --------
class A;
class B;
class A {
static const int c; // line A
public:
B foo();
};
class B {
static const double c; // line B
public:
friend B A::foo();
};
------------------------------------
Furthermore, what is bizzare is that it compiles perfectly when the
name of the constants in lines A or B are different. But it crashes
when the names are the same, as is the case here. Can someone look
into this.
Thanks,
-Rajive
Script started on Wed Sep 9 00:52:24 1992
% g++ -v -sun4 -c sig11bug.cc
Reading specs from /depot/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/specs
gcc version 2.2.2
/depot/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/cpp -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -Dsparc -Dsun -Dunix -D__sparc__ -D__sun__ -D__unix__ -D__sparc -D__sun -D__unix sig11bug.cc /usr/tmp/cca25359.i
GNU CPP version 2.2.2 (sparc)
/depot/gnu/lib/gcc-lib/sparc-sun-sunos4.1/2.2.2/cc1plus /usr/tmp/cca25359.i -quiet -dumpbase sig11bug.cc -version -o /usr/tmp/cca25359.s
GNU C++ version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
/depot/gnu/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11
% exit
script done on Wed Sep 9 00:54:06 1992
--
======================================================================
Rajive Joshi rajive@cat.rpi.edu CII 8005
Center for Advanced Technology | Rensselaer Polytechnic Institute
in Automation & Robotics | Troy, NY 12180 (518) 276-3045
Technical Details
Message-ID:
<7w4ybc@rpi.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!manhattan.cat.rpi.edu!rajiveShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!sun-barr!cs.utexas.edu!sdd.hp.com!swrinde!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!manhattan.cat.rpi.edu!rajive From: rajive@manhattan.cat.rpi.edu (Rajive Joshi) Newsgroups: gnu.g++.bug Subject: g++ 2.2.2 bug: program cc1plus gets fatal signal 11 Message-ID: <7w4ybc@rpi.edu> Date: 9 Sep 92 05:15:32 GMT Sender: gnulists@ai.mit.edu Distribution: gnu Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 62 Approved: bug-g++@prep.ai.mit.edu