From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C3C143857C41; Sat, 25 Jul 2020 03:26:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C3C143857C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595647567; bh=I0pJthR8aDYkJE66RQdjCtbDtuFZqKdmNOXqYhSJa5g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=S86EXqC1vmiCf6JsxTDwj9dCMBD0fconifTp2nC8vzhmWWIqGsNM2x7I+1XM3xvOK bMIY9mPTys8P25hs0yVP4ATMPPkLeARaqMd5pIV4r9OJdsiVyz3jQ8sAhvAgAwWqmm i0WvWCRWcA7FKlPtYhf/wsWHdlHNc0rIuFftY3AU= From: "johelegp at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/96193] No ADL in dependent call with explicit template arguments Date: Sat, 25 Jul 2020 03:26:07 +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: 10.1.0 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: johelegp at gmail dot com 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: bug_file_loc short_desc 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-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2020 03:26:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96193 Johel Ernesto Guerrero Pe=C3=B1a changed: What |Removed |Added ---------------------------------------------------------------------------- URL| |https://godbolt.org/z/E64Pb | |b Summary|No ADL in call with |No ADL in dependent call |explicit template arguments |with explicit template |within templated hidden |arguments |friend | --- Comment #4 from Johel Ernesto Guerrero Pe=C3=B1a --- It actually fails for dependent calls. See https://godbolt.org/z/E64Pbb. ```C++ namespace ns { template struct X { }; template constexpr void adl(X) { } } template void f() { adl(ns::X{}); } void g() { f(); } ```=