Article View: gnu.g++.bug
Article #782g++ 2.2.2 bug with extern "C" friends
From: Steve Rumsby
Date: Tue, 25 Aug 1992 13:15
Date: Tue, 25 Aug 1992 13:15
29 lines
1656 bytes
1656 bytes
This seems to have got lost (I haven't seen it in gnu.g++.bug) so I'm
resending it. If some people see it twice, sorry.
Steve.
------
Classes with extern "C" friend functions seem to give cc1plus gastric distress.
This happens on Sparc (SunOS 4.1.1), Sun 3 (SunOS 4.1.1), and SGI MIPS
(Irix 4.0.1) boxes, so I guess it is pretty fundamental! Any suggestions?
Thanks,
Steve.
$ cat kb.c
extern "C" int bar();
struct foo {
friend int bar();
};
$ g++ -v kb.c
Reading specs from /gnu/lib/gcc-lib/sparc-sunos4/2.2.2/specs
gcc version 2.2.2
/gnu/lib/gcc-lib/sparc-sunos4/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 kb.c /usr/tmp/cca00897.i
GNU CPP version 2.2.2 (sparc)
/gnu/lib/gcc-lib/sparc-sunos4/2.2.2/cc1plus /usr/tmp/cca00897.i -quiet -dumpbase kb.cc -version -o /usr/tmp/cca00897.s
GNU C++ version 2.2.2 (sparc) compiled by GNU C version 2.2.2.
/gnu/bin/gcc: Internal compiler error: program cc1plus got fatal signal 11
--
UUCP: ...!uknet!warwick!steve Internet: steve@maths.warwick.ac.uk
JANET: steve@uk.ac.warwick.maths PHONE: +44 203 524657
Technical Details
Message-ID:
<11787.199208251115@amazon>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!maths.warwick.ac.UK!steveShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!linac!pacific.mps.ohio-state.edu!cis.ohio-state.edu!maths.warwick.ac.UK!steve From: steve@maths.warwick.ac.UK (Steve Rumsby) Subject: g++ 2.2.2 bug with extern "C" friends Message-ID: <11787.199208251115@amazon> Sender: gnulists@ai.mit.edu Organization: Maths Institute, Warwick University, Coventry, UK. Distribution: gnu Date: Tue, 25 Aug 1992 13:15:51 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 30