This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/39055] [DR 1443][4.4/4.5/4.6/4.7 regression] questionable default parameter of a member function accepted
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 11 Feb 2012 08:53:01 +0000
- Subject: [Bug c++/39055] [DR 1443][4.4/4.5/4.6/4.7 regression] questionable default parameter of a member function accepted
- Auto-submitted: auto-generated
- References: <bug-39055-4@http.gcc.gnu.org/bugzilla/>
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).