This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16782] Accepts qualified member function declaration in class


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]