https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91476
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jason Merrill <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:3384aa7af4c4ce193f59d086f507812b88caf113 commit r9-8151-g3384aa7af4c4ce193f59d086f507812b88caf113 Author: Jason Merrill <ja...@redhat.com> Date: Mon Jan 20 14:09:03 2020 -0500 PR c++/91476 - anon-namespace reference temp clash between TUs. * call.c (make_temporary_var_for_ref_to_temp): Clear TREE_PUBLIC if DECL is in the anonymous namespace.