https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102576
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>: https://gcc.gnu.org/g:c2ee70f20de8133a88553270073226b0f3f55f62 commit r13-2969-gc2ee70f20de8133a88553270073226b0f3f55f62 Author: Patrick Palka <ppa...@redhat.com> 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.