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++/39055] [DR 1443][4.4/4.5/4.6/4.7 regression] questionable default parameter of a member function accepted


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39055

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|SUSPENDED                   |NEW
            Summary|questionable default        |[DR 1443][4.4/4.5/4.6/4.7
                   |parameter of a member       |regression] questionable
                   |function accepted           |default parameter of a
                   |                            |member function accepted

--- Comment #19 from Jason Merrill <jason at gcc dot gnu.org> 2012-02-11 08:53:01 UTC ---
At the Kona meeting this week, one of the EDG guys pointed out that there is
text in 8.3.6 that specifically prohibits this:

Similarly, a non-static member shall not be used in a default argument, even if
it is not evaluated, unless it appears as the id-expression of a class member
access expression (5.2.5) or unless it is used to form a pointer to member
(5.3.1).


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