aboutsummaryrefslogtreecommitdiff
path: root/libjava/classpath/java/rmi
diff options
context:
space:
mode:
authorNathaniel Shead <nathanieloshead@gmail.com>2026-01-31 21:45:39 +1100
committerNathaniel Shead <nathanieloshead@gmail.com>2026-02-08 17:27:19 +1100
commitc6dd51c062667fdf2db3bed0ab50e034e048f3b5 (patch)
tree44a72ce5307b253f4366dedbfc7f9b2b9f208ad5 /libjava/classpath/java/rmi
parentca70335ceab761f3c3a365d0667ad824a7bf6822 (diff)
downloadgcc-c6dd51c062667fdf2db3bed0ab50e034e048f3b5.zip
gcc-c6dd51c062667fdf2db3bed0ab50e034e048f3b5.tar.gz
gcc-c6dd51c062667fdf2db3bed0ab50e034e048f3b5.tar.bz2
c++/modules: Fix ICE with multiple module declarations and -M [PR123738]
When only doing preprocessing, we do not call declare_module, and so we do not check that a module has been declared multiple times. This means we end up with multiple "primary modules" being passed to the dependency producing logic, which asserts. Fixed by checking if we've already seen a module declaration and complaining. PR c++/123738 gcc/cp/ChangeLog: * module.cc (preprocess_module): Complain for any non-imported module declaration in a module purview. gcc/testsuite/ChangeLog: * g++.dg/modules/dep-5.C: New test. Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com> Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/classpath/java/rmi')
0 files changed, 0 insertions, 0 deletions