From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11982 invoked by alias); 21 Oct 2013 12:18:46 -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 Received: (qmail 11953 invoked by uid 48); 21 Oct 2013 12:18:43 -0000 From: "daniel.kruegler at googlemail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58820] lambda multiple inheritance operator() not ambiguous Date: Mon, 21 Oct 2013 12:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: daniel.kruegler at googlemail dot com 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: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-10/txt/msg01496.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D58820 --- Comment #1 from Daniel Kr=C3=BCgler --- This looks like a more fundamental name lookup problem of gcc to me. It can= be reproduced with function object types that are no lambda closures: template =20 struct overload_set : Fs... { overload_set(Fs... f) : Fs(f)... {}=20=20 }; template =20 overload_set overload(Fs... x) { return overload_set(x...); } template struct Closure=20 { void operator()(T) const {} using FPtr =3D void(*)(T); operator FPtr() const; }; int main() { double d =3D 10;=20 overload( Closure(), Closure(), Closure()=20 )(d); } >>From gcc-bugs-return-432353-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Oct 21 12:22:52 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 19650 invoked by alias); 21 Oct 2013 12:22:51 -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 19564 invoked by uid 48); 21 Oct 2013 12:22:47 -0000 From: "paolo.carlini at oracle dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/58820] lambda multiple inheritance operator() not ambiguous Date: Mon, 21 Oct 2013 12:22:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo.carlini at oracle dot com X-Bugzilla-Status: NEW 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_status cf_reconfirmed_on blocked everconfirmed Message-ID: In-Reply-To: References: 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: 2013-10/txt/msg01497.txt.bz2 Content-length: 576 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58820 Paolo Carlini changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2013-10-21 Blocks|54367 | Ever confirmed|0 |1 --- Comment #2 from Paolo Carlini --- Thanks Daniel. Could even be a duplicate then.