Path: 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 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