diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-04-11 07:29:11 +1000 |
---|---|---|
committer | Nathaniel Shead <nathanieloshead@gmail.com> | 2025-04-13 20:33:38 +1000 |
commit | f40e39515e0b7fa69bd50bad99f1f1b8c446692f (patch) | |
tree | cbf5be2192e4abb1ea35cc05fd2c3a425fbb2940 /libjava/java | |
parent | 714e9020becc260a05f17ae694a6bdde65d9c567 (diff) | |
download | gcc-f40e39515e0b7fa69bd50bad99f1f1b8c446692f.zip gcc-f40e39515e0b7fa69bd50bad99f1f1b8c446692f.tar.gz gcc-f40e39515e0b7fa69bd50bad99f1f1b8c446692f.tar.bz2 |
c++/modules: More fixes for merging DECL_MAYBE_DELETED functions
My change in r15-9216 broke the case where we imported an uninstantiated
defaulted function over the top of one we had already finished. This
patch ensures that we don't error for mismatches in this case.
gcc/cp/ChangeLog:
* module.cc (trees_in::is_matching_decl): Don't check for
mismatches when importing a DECL_MAYBE_DELETED function over one
that's already finished.
gcc/testsuite/ChangeLog:
* g++.dg/modules/noexcept-4_a.H: New test.
* g++.dg/modules/noexcept-4_b.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'libjava/java')
0 files changed, 0 insertions, 0 deletions