]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++/modules: Remove incorrect assertion [PR122015,PR122019]
authorNathaniel Shead <nathanieloshead@gmail.com>
Thu, 25 Sep 2025 11:05:40 +0000 (21:05 +1000)
committerNathaniel Shead <nathanieloshead@gmail.com>
Thu, 25 Sep 2025 11:16:10 +0000 (21:16 +1000)
commit4f9f1269f4e929ee471b717b47c33d2d5a3db0d3
tree73a60b783db67ee2e4b9ee40300fcd1c6011872a
parent19167808a6403843af1ff74410b6f324d7c6304d
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 <nathanieloshead@gmail.com>
gcc/cp/module.cc