This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/16782] Accepts qualified member function declaration in class
- From: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Sep 2005 23:04:13 -0000
- Subject: [Bug c++/16782] Accepts qualified member function declaration in class
- References: <20040727131653.16782.bangerth@dealii.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at integrable-solutions dot net 2005-09-14 23:04 -------
Subject: Re: Accepts qualified member function declaration in class
"mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| G++ will issue a diagnostic about this usage with -pedantic.
|
| The decision not to issue a diagnostic in the default mode is conscious and
| intentional; G++ has historically accepted this code, and there is no semantic
| problem with accepting it. There are some members of the GCC community that are
| very much opposed to making the compiler stricter in the default mode.
|
| Jason, Nathan, do you think we should turn this diagnostic on by default (as a
| pedwarn), or just close this PR? If the latter, should we document
| this extension?
We should make it a diagnostic and give a switch to people who are
"annoyed" to turn it off.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16782