From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 09E53385843B; Wed, 27 Mar 2024 13:38:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09E53385843B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711546713; bh=3wiLaGoStSz2v6465n3GuVHNzfJHKAUoICDU/pCa84k=; h=From:To:Subject:Date:In-Reply-To:References:From; b=roKBVuGj4DT3jilgR3FlrSQWeh3oEx4M2+Q5G/8coqEA1+KluQxPlSJU6RNhr8pUQ MmTwapsknn0eCzT8mk52QwD7PFaAWZOVQqnSpRp7wbrkSpr7g+bhKzcJ5gIetrZ+Cm bBywc25tvezlqjQ5K5GJa0tRq2+I+is/aquBT2II= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102257] call of overloaded 'tuple' is ambiguous Date: Wed, 27 Mar 2024 13:38:32 +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: 12.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102257 --- Comment #5 from Jonathan Wakely --- I think this is the same bug, reduced from Bug 100667 comment 1 (where it wasn't related): struct allocator_arg_t { explicit allocator_arg_t() =3D default; }; class string{}; class Foo{}; struct tuple { template tuple(allocator_arg_t, const Alloc&) { } template tuple(const string&, const Foo&) { } }; tuple bar() { return { {}, Foo{}}; } Clang and EDG accept this.=