https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122019
--- Comment #8 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Nathaniel Shead <nsh...@gcc.gnu.org>: https://gcc.gnu.org/g:8d99f27dbb2e1f7d3826cf9dfa45bdc4d8dc554e commit r15-10372-g8d99f27dbb2e1f7d3826cf9dfa45bdc4d8dc554e Author: Nathaniel Shead <nathanielosh...@gmail.com> Date: Thu Sep 25 21:05:40 2025 +1000 c++/modules: Remove incorrect assertion [PR122015,PR122019] This assertion, despite what I said in r16-4070, is not valid: we can reach here when deduping a VAR_DECL that didn't get a LANG_SPECIFIC in the current TU. It's still correct to always use lang_cplusplus however as for anything else the decl would have been created with an appropriate LANG_SPECIFIC to start with. PR c++/122015 PR c++/122019 gcc/cp/ChangeLog: * module.cc (trees_in::install_entity): Remove incorrect assertion. Signed-off-by: Nathaniel Shead <nathanielosh...@gmail.com> (cherry picked from commit 4f9f1269f4e929ee471b717b47c33d2d5a3db0d3)