🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

An undefined type is accepted

#1717
From: "Denis R. Martin"
Date: Wed, 08 Mar 1989 21:17
32 lines
981 bytes
Hi,

Here is a C++ program I think should not compile. The only message
I get is "undefined symbols: _main". I'm running g++ V1.32 on a
Sun3 under OS3.5. The command I used is "g++ foo.cc".

//   -*- C++ -*- 

class Graph 
{
protected:
  UndefinedType vertices;   // ???
public:
  Graph();
  ~Graph();
};

main()
{
  Graph a;
  cout << "This should not compile...\n";
}

-------------------------------------------------------------------------------


For now, I'll make sure all my types are defined...

Denis Martin
Ecole Polytechnique, Montreal, Qc.
denis%vlsi.poly%crim.ca
Technical Details
Message-ID: <8903082117.AA03423@vlsi.poly>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!crim.ca!denis%vlsi.poly

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!crim.ca!denis%vlsi.poly
From: denis%vlsi.poly@crim.ca ("Denis R. Martin")
Newsgroups: gnu.g++.bug
Subject: An undefined type is accepted
Message-ID: <8903082117.AA03423@vlsi.poly>
Date: 8 Mar 89 21:17:31 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 32