This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: new type (initializer) --- bug ???
- To: Ruediger Schopper <schopper at hal15 dot usm dot uni-muenchen dot de>
- Subject: Re: new type (initializer) --- bug ???
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 31 Oct 1998 06:35:00 -200
- Cc: egcs-bugs at cygnus dot com
- References: <9810131248.AA30035@hal15.usm.uni-muenchen.de>
Ruediger Schopper <schopper@hal15.usm.uni-muenchen.de> writes:
> When one gives an initializer to the new operator, it
> compiles with aggregate types, but not with built in ones.
First of all, I should tell you that this is not Standard C++; it is
an extension provided by g++, so you'd better not rely on that. If
you compile with -ansi -pedantic, you'll get error messages for those
usages. However, for simmetry, egcs should provide the extension for
all types or for none, so I added the attached testcase to the
testsuite.
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
arrnew2.C