https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99248
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>: https://gcc.gnu.org/g:5f27a9f90d4eadadf937f1a5d0bfccf39261f330 commit r11-7632-g5f27a9f90d4eadadf937f1a5d0bfccf39261f330 Author: Nathan Sidwell <nat...@acm.org> Date: Thu Mar 11 13:06:36 2021 -0800 c++: Fix unhiding friend with imports [PR 99248] This was a simple thinko about which object held the reference to the binding vector. I also noticed stale code in the tree dumper, as I recently removed the flags from a lazy number. PR c++/99248 gcc/cp/ * name-lookup.c (lookup_elaborated_type_1): Access slot not bind when there's a binding vector. * ptree.c (cxx_print_xnode): Lazy flags are no longer a thing. gcc/testsuite/ * g++.dg/modules/pr99248.h: New. * g++.dg/modules/pr99248_a.H: New. * g++.dg/modules/pr99248_b.H: New.