https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99071
--- Comment #2 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:d46c7e2c546b26d036856cf570694b832d3b1f54 commit r11-7265-gd46c7e2c546b26d036856cf570694b832d3b1f54 Author: Nathan Sidwell <nat...@acm.org> Date: Wed Feb 17 05:28:09 2021 -0800 c++: ICE with header-units [PR 99071] This ICE was caused by dereferencing the wrong pointer and not finding the expected thing there. Pointers are like that. PR c++/99071 gcc/cp/ * name-lookup.c (maybe_record_mergeable_decl): Deref the correct pointer. gcc/testsuite/ * g++.dg/modules/pr99071_a.H: New. * g++.dg/modules/pr99071_b.H: New.