This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31988] new operator should not permit default first parameter
- From: "andrew dot stubbs at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2007 16:00:05 -0000
- Subject: [Bug c++/31988] new operator should not permit default first parameter
- References: <bug-31988-10252@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from andrew dot stubbs at st dot com 2007-09-28 16:00 -------
I'm not a GCC expert, but that patch looks like it will silently change the
behaviour of the compiler when -pedantic is not given.
I would suggest that the first parameter should either be a regular,
non-pedantic warning, or else should honour the default as requested by the
user (as a language extension).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31988