Article View: gnu.g++.bug
Article #1466Bug in 1.27.0 using typeof() in a class object declaration
From: Ron Guilmette
Date: Fri, 30 Sep 1988 18:22
Date: Fri, 30 Sep 1988 18:22
45 lines
1360 bytes
1360 bytes
SUMMARY
With G++ 1.27.0 there seems to be a problem in using typeof() in the
declaration of a class object.
I get the compile-time message:
bug1.cc:16: bad parameter list specification for function 'object2'
CONFIGURATION
G++ 1.27.0 (with gcc 1.27 files)
I am running on an Encore-Multimax (using System V.3).
ns32k.md => md
output-ns32k.c => aux-output.c
tm-encore.h => tm.h
config-gnx.h => config.h
I have many small patches installed for System V and/or Genix.
EXAMPLE
class class1 {
int i;
public:
class1(int ii);
};
class1::class1(int ii)
{
i = ii;
}
class1 object1 (1);
void func1 ()
{
typeof(object1) object2 (2); // *** error flagged here
}
//Ron Guilmette
//National SemiConductor, 1135 Kern Ave. M/S 7C-266; Sunnyvale, CA 94086
//Internet: rfg@nsc.nsc.com or amdahl!nsc!rfg@ames.arc.nasa.gov
//Uucp: ...{pyramid,sun,amdahl,apple}!nsc!rfg
Technical Details
Message-ID:
<8809301822.AA20751@nsc.NSC.COM>Path:
arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!nsc.nsc.com!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!nsc.nsc.com!rfg From: rfg@nsc.nsc.com (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: Bug in 1.27.0 using typeof() in a class object declaration Message-ID: <8809301822.AA20751@nsc.NSC.COM> Date: 30 Sep 88 18:22:59 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 44