diff options
| author | Marek Polacek <polacek@redhat.com> | 2026-01-28 16:33:34 -0500 |
|---|---|---|
| committer | Marek Polacek <polacek@redhat.com> | 2026-01-30 08:26:04 -0500 |
| commit | 35d45295f555a4970e98180f4a2f6099f345c363 (patch) | |
| tree | 22e993d6363a004e3eb11acc4cf6d67f6e6ca30d /libjava/classpath/resource/gnu/java | |
| parent | a2a7c49948ae75324c7fcb92719568a0928d1671 (diff) | |
| download | gcc-35d45295f555a4970e98180f4a2f6099f345c363.zip gcc-35d45295f555a4970e98180f4a2f6099f345c363.tar.gz gcc-35d45295f555a4970e98180f4a2f6099f345c363.tar.bz2 | |
c++/reflection: tweak eval_can_substitute
As discussed in
<https://gcc.gnu.org/pipermail/gcc-patches/2026-January/705756.html>,
we should check for undeduced_auto_decl after performing
resolve_nondeduced_context_or_error. Also add a test to exercise
the new check.
gcc/cp/ChangeLog:
* reflect.cc (eval_can_substitute): Check undeduced_auto_decl after
resolve_nondeduced_context_or_error.
gcc/testsuite/ChangeLog:
* g++.dg/reflect/substitute3.C: New test.
Reviewed-by: Jason Merrill <jason@redhat.com>
Reviewed-by: Jakub Jelinek <jakub@redhat.com>
Diffstat (limited to 'libjava/classpath/resource/gnu/java')
0 files changed, 0 insertions, 0 deletions
