From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: c++ compiler question Date: 17 Nov 1998 13:01:23 +0000 Organization: Defence Evaluation & Research Agency Lines: 32 Message-ID: <87ogq679ss.fsf@hasn.dera.gov.uk> References: <36480907 DOT 1FE0FD6B AT eev DOT e-technik DOT uni-erlangen DOT de> NNTP-Posting-Host: 146.80.115.106 X-Newsreader: Gnus v5.5/Emacs 20.3 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Michael Schuster writes: > The following programm compiles fine with 2.7.2.1 but not with 2.8.1 > > #include > class ax > { > int* w; > public: > ax(int elements,int dummy) > { > w=new int[elements]; > } > }; > class b > { > ax* e; > public: > b (int row,int elements,int dummy) > { > e= new ax[row](elements,dummy); // causes the trouble > } > }; I don't think new is able to call non-default constructors in standard C++. That looks like a GNUism to me. HTH, Ian -- Ian Miller, Dorset, UK The views expressed above are those of the writer and do not represent the views, policy, or understanding of any other person or official body.