Article View: gnu.g++.bug
Article #1237GNU C++ 2.3.1 gets signal 10 with undeclared variable in class definition
From: Jeremy Fitzhardinge
Date: Tue, 24 Nov 1992 06:15
Date: Tue, 24 Nov 1992 06:15
45 lines
1934 bytes
1934 bytes
Hi! Have a look at this:
gcc 2.3.1 running on a SparcStation1 under SunOS 4.1.1 fails with this
program:
--x.cc--
class x
{
int foo;
char glop[plim];
public:
x::x();
};
x::x()
{
foo = fop;
}
----
This is the output of a compile run:
: chao:p7; gcc -c -v x.cc
Reading specs from /usr/local/lib/gcc-lib/sparc-sunos4/2.3.1/specs
gcc version 2.3.1
/usr/local/lib/gcc-lib/sparc-sunos4/2.3.1/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 -I/usr/local/libg++/2.2/include x.cc /tmp/cca14824.i
GNU CPP version 2.3.1 (sparc)
/usr/local/lib/gcc-lib/sparc-sunos4/2.3.1/cc1plus /tmp/cca14824.i -quiet -dumpbase x.cc -version -o /tmp/cca14824.s
GNU C++ version 2.3.1 (sparc) compiled by GNU C version 2.3.1.
x.cc:4: `plim' undeclared, outside of functions
gcc: Internal compiler error: program cc1plus got fatal signal 10
: chao:p7; adb /usr/local/lib/gcc-lib/sparc-sunos4/2.3.1/cc1plus core
core file = core -- program ``cc1plus''
SIGBUS 10: bus error
$c
_finish_struct(0x19d618,0x1a1a40,0x0,0x1a19d8,0x15,0x0) + 724
_yyparse(0x19d618,0x14d,0xf7ffe572,0xf7ffe568,0xc8,0x0) + 3184
_output_file_directive(0xf7ffea62,0x7f428,0x7f448,0x80620,0x1,0x22) + ba0
_main(0x8,0xf7ffe8a4,0xf7ffe8c8,0x170000,0x0,0x0) + e40
: chao:p7;
J
--
jeremy@sw.oz.au ph:+61 2 698 2322-x122 fax:+61 2 699 9174
I'm sorry I sound calm, I'm really quite hysterical.
Technical Details
Message-ID:
<9211230815.AA14848@chao.sw.oz.au>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sw.oz.AU!jeremyShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sw.oz.AU!jeremy From: jeremy@sw.oz.AU (Jeremy Fitzhardinge) Subject: GNU C++ 2.3.1 gets signal 10 with undeclared variable in class definition Message-ID: <9211230815.AA14848@chao.sw.oz.au> Sender: gnulists@ai.mit.edu Organization: Softway Pty Ltd Distribution: gnu Date: Tue, 24 Nov 1992 06:15:24 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 46