This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: default constructor replaces explicit definition
- To: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Subject: Re: default constructor replaces explicit definition
- From: Chris Jang <cjang at ix dot netcom dot com>
- Date: Sat, 30 Jan 1999 18:08:38 -0600 (CST)
- cc: egcs-bugs at cygnus dot com
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
>
>