🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

g++ 1.36.2- doesn't handle typedefs properly

#639
From: chatty%FRLRI61.BITNET
Date: Wed, 29 Nov 1989 09:11
24 lines
816 bytes
// g++ 1.36.2- (with the various posted patches) refuses to compile the
// following code:


class A {
public:
        A (int);
};

typedef A B;

B
foo ()
{
        return B (0);
}

// % g++ -c a.cc
// a.cc: In function class A foo ():
// a.cc:11: no member function `A::B'


// Stephane Chatty              chatty@lri.lri.fr
//                      chatty@frlri61.bitnet
Technical Details
Message-ID: <8911290911.AA01311@lri.lri.fr>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNET

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!CUNYVM.CUNY.EDU!chatty%FRLRI61.BITNET
From: chatty%FRLRI61.BITNET@CUNYVM.CUNY.EDU
Newsgroups: gnu.g++.bug
Subject: g++ 1.36.2- doesn't handle typedefs properly
Message-ID: <8911290911.AA01311@lri.lri.fr>
Date: 29 Nov 89 09:11:45 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 24