This is the mail archive of the
mailing list for the GCC project.
[Bug c++/31988] new operator should not permit default first parameter
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Sep 2007 16:11:16 -0000
- Subject: [Bug c++/31988] new operator should not permit default first parameter
- References: <email@example.com/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pcarlini at suse dot de 2007-09-28 16:11 -------
(In reply to comment #3)
> 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.
When -pedantic is not given (the default) a pedwarn is an hard error. A pedwarn
becomes a warning when -permissive is passes (and the code is thus accepted as
an extension, which I would find useful for legacy code). But I have no strong
opinion, in general.