This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: default constructor replaces explicit definition


I am deeply chagrined!

On 30 Jan 1999, Alexandre Oliva wrote:
> On Jan 30, 1999, Chris Jang <cjang@ix.netcom.com> wrote:
> 
> >   MyUndefinedClass bad();
> 
> This is declaring a function taking no arguments and returning a
> MyUndefinedClass, not an object default-initialized.  Welcome to C++ :-)
> 
> -- 
> Alexandre Oliva  http://www.dcc.unicamp.br/~oliva  aoliva@{acm.org}
> oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
> Universidade Estadual de Campinas, SP, Brasil
> 
> 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]