Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!orchid!gamiddleton From: gamiddleton@orchid.UUCP Newsgroups: comp.lang.c++ Subject: dumb question, probably Message-ID: <10120@orchid.waterloo.edu> Date: Thu, 6-Aug-87 02:11:42 EDT Article-I.D.: orchid.10120 Posted: Thu Aug 6 02:11:42 1987 Date-Received: Sat, 8-Aug-87 09:44:59 EDT Distribution: comp Organization: TechnoGeek Associates Lines: 27 As far as I can tell, the following fragment should be (syntactically) correct: class zot { int *x; public: zot( zot & ); ~zot() { delete x; } }; void zot::zot( zot &z ) { x = new (int); *x = *z.x; } When I compile it, I get: ccc zot.cc: "zot.cc", line 11: error: zot ::zot () with return type 1 error It works fine if zot::zot() is left undeclared (leaving 'void' out). What am I missing? Or is this a bug? __ -Guy Middleton, University of Waterloo Institute for Computer Research gamiddleton@math.waterloo.edu, watmath!gamiddleton, gamiddleton@water.bitnet