https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115062
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Nathaniel Shead <nsh...@gcc.gnu.org>: https://gcc.gnu.org/g:71aebb36174c194231da5f9c7c23f81dbb082ca4 commit r15-2819-g71aebb36174c194231da5f9c7c23f81dbb082ca4 Author: Nathaniel Shead <nathanielosh...@gmail.com> Date: Thu Aug 8 17:52:03 2024 +1000 c++: Propagate TREE_ADDRESSABLE in fixup_type_variants [PR115062] This has caused issues with modules when an import fills in the definition of a type already created with a typedef. PR c++/115062 gcc/cp/ChangeLog: * class.cc (fixup_type_variants): Propagate TREE_ADDRESSABLE. (finish_struct_bits): Cleanup now that TREE_ADDRESSABLE is propagated by fixup_type_variants. gcc/testsuite/ChangeLog: * g++.dg/modules/pr115062_a.H: New test. * g++.dg/modules/pr115062_b.H: New test. * g++.dg/modules/pr115062_c.C: New test. Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com>