From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 12D1A385C33F; Thu, 29 Sep 2022 20:27:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 12D1A385C33F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664483271; bh=061bgCsRQiMIHp/mv5CF8xztcbhQxJeCaEsa5UccMgA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RK8f4Rx+y1WsuDZsTYy4BrYNbnroLmO6h6+9YSnDuCFA5b+NjBKrQsdVY7pCQDk8n f+6gzqU0EUizSEIU+CoT7Ys642wP67lI6WPptGgMdvSuAGQrb5IolvP2alp2RRnaSj Pne65Nk/yDCv8fGDzQzHFKhUsVBHmi8STPEbukUc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/102576] [modules] Importing doesn't permit implicit uses Date: Thu, 29 Sep 2022 20:27:50 +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: cvs-commit 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=3D102576 --- Comment #2 from CVS Commits --- The master branch has been updated by Patrick Palka : https://gcc.gnu.org/g:c2ee70f20de8133a88553270073226b0f3f55f62 commit r13-2969-gc2ee70f20de8133a88553270073226b0f3f55f62 Author: Patrick Palka Date: Thu Sep 29 16:27:30 2022 -0400 c++: implicit lookup of std::initializer_list [PR102576] Here the lookup for the implicit use of std::initializer_list fails because we do it using get_namespace_binding, which isn't import aware. Fix this by using lookup_qualified_name instead. PR c++/102576 gcc/cp/ChangeLog: * pt.cc (listify): Use lookup_qualified_name instead of get_namespace_binding. gcc/testsuite/ChangeLog: * g++.dg/modules/pr102576_a.H: New test. * g++.dg/modules/pr102576_b.C: New test.=