Newsgroups: comp.lang.c++ Path: utzoo!utgpu!cunews!csi.uottawa.ca!news From: hitz@sim5.csi.uottawa.ca (Martin Hitz) Subject: calling a generated copy constructor Message-ID: <1991Apr23.032005.17321@csi.uottawa.ca> Sender: news@csi.uottawa.ca Nntp-Posting-Host: sim5 Organization: University of Ottawa Date: Tue, 23 Apr 91 03:20:05 GMT The ARM specifies exactly how copy constructors are generated by the compiler, if they are not explicitely specified. Moreover, it even distinguishes between declaration and definition of a generated copy constructor (page 296). However, g++ refuses to compile class X {}; main() { X x; X y(x); } x.cc: In function int main (): x.cc:5: constructor syntax used, but no constructor declared for type `X' Is this considered a bug? Martin Hitz (hitz@csi.uottawa.ca)