🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #1192

Local type names bug in g++ 2.3.3

#1192
From: Gnanasekaran Swaminathan
Date: Wed, 30 Dec 1992 20:38
21 lines
1301 bytes
g++ 2.3.3 accepts the code below without any problem.
c++ -v -c tlocaltypes.cc
gcc version 2.3.3
 /home/gs4t/bin/lib/gcc-lib/sun4/2.3.3/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 tlocaltypes.cc /usr/tmp/cca03002.i
GNU CPP version 2.3.3 (sparc)
 /home/gs4t/bin/lib/gcc-lib/sun4/2.3.3/cc1plus /usr/tmp/cca03002.i -quiet -dumpbase tlocaltypes.cc -version -o /usr/tmp/cca03002.s
GNU C++ version 2.3.3 (sparc) compiled by GNU C version 2.2.2.
 as -o tlocaltypes.o /usr/tmp/cca03002.s

Compilation finished at Wed Dec 30 15:23:30

typedef char* T;

struct Y {
    T a;
    typedef long T; // error. See ARM p189-191 for details
    T b;
};


Is anybody working on the name hiding bugs of g++?
Technical Details
Message-ID: <1992Dec30.203807.17504@murdoch.acc.Virginia.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!virginia.edu!gs4t
References: <9212291829.AA00556@corrado.visix.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!virginia.edu!gs4t
From: gs4t@virginia.edu (Gnanasekaran  Swaminathan)
Subject: Local type names bug in g++ 2.3.3
Message-ID: <1992Dec30.203807.17504@murdoch.acc.Virginia.EDU>
Sender: gnulists@ai.mit.edu
Organization: University of Virginia
References: <9212291829.AA00556@corrado.visix.com>
Distribution: gnu
Date: Wed, 30 Dec 1992 20:38:07 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 22