Article View: gnu.g++.bug
Article #1740BUG in G++ 1.34.0
From: Ron Guilmette
Date: Wed, 15 Mar 1989 05:40
Date: Wed, 15 Mar 1989 05:40
33 lines
1440 bytes
1440 bytes
This chunk of code also produces what appears to be a bogus error
message. Are methods allowed to be extern?
----------------------------------------------------------------------------
// Check that a class method may be declared to be extern
#include "testinc.h"
class c {
public:
extern void method1 ();
};
int test ()
{
c c_object;
c_object.method1 ();
return 0;
}
extern void c::method1 ()
{
}
------------------------------------------------------------------------------
g++ -Wall -Wwrite-strings -v -S x05.C
g++ version 1.34.0.1
/usr/local/src/lib/1.34.0.1/sun3/gcc-cpp -+ -v -undef -D__GNU__ -D__GNUG__ -Dmc68000 -Dsun -Dunix -D__mc68000__ -D__sun__ -D__unix__ -Wall -D__HAVE_68881__ -Dmc68020 x05.C /tmp/cca20136.cpp
GNU CPP version 1.34.0.1
/usr/local/src/lib/1.34.0.1/sun3/gcc-c++ /tmp/cca20136.cpp -quiet -dumpbase x05.C -Wall -Wwrite-strings -noreg -version -o x05.s
GNU C++ version 1.34.0.1 (68k, MIT syntax) compiled by GNU C version 1.33.
x05.C:7: storage class specified for structure field `method1'
Technical Details
Message-ID:
<8903150540.AA20147@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!dptcdc!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: BUG in G++ 1.34.0 Message-ID: <8903150540.AA20147@riunite.aca.mcc.com> Date: 15 Mar 89 05:40:42 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 33