http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60909 UroÅ¡ Bizjak changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED --- Comment #7 from UroÅ¡ Bizjak --- Fixed everywhere. >From gcc-bugs-return-449745-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Wed Apr 23 19:47:07 2014 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 29613 invoked by alias); 23 Apr 2014 19:47:07 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 29583 invoked by uid 48); 23 Apr 2014 19:47:03 -0000 From: "Casey at Carter dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/60943] New: [C++1y] Return type deduction interferes with ref-qualifiers Date: Wed, 23 Apr 2014 19:47:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Casey at Carter dot net X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-04/txt/msg01765.txt.bz2 Content-length: 977 http://gcc.gnu.org/bugzilla/show_bug.cgi?id`943 Bug ID: 60943 Summary: [C++1y] Return type deduction interferes with ref-qualifiers Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: Casey at Carter dot net Created attachment 32663 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id2663&actioníit Minimal test case When compiling this program: struct A { auto f() & {} auto f() && {} }; int main() { A{}.f(); A a; a.f(); } g++ diagnoses both calls to "f" in "main" as ambiguous, despite that the ref-qualifiers unequivocally constrain the two member functions so that it is never the case that both are valid. The program does compile successfully if the "auto" return types of both "f" definitions are replaced with "void".