diff options
| author | Jakub Jelinek <jakub@redhat.com> | 2026-01-29 12:34:59 +0100 |
|---|---|---|
| committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2026-01-29 12:34:59 +0100 |
| commit | 4f2a04726b97a79f5c0cdb4af8e589aebefea7ef (patch) | |
| tree | 262f806c2a137eb94ee980c57d3c7d0f7257831b /libjava/testsuite/libjava.lang/PR25535.java | |
| parent | 7632c2e12b231ae2648920daa7233f9778624c7a (diff) | |
| download | gcc-4f2a04726b97a79f5c0cdb4af8e589aebefea7ef.zip gcc-4f2a04726b97a79f5c0cdb4af8e589aebefea7ef.tar.gz gcc-4f2a04726b97a79f5c0cdb4af8e589aebefea7ef.tar.bz2 | |
c++: Fix ICE in eval_annotations_of [PR123866]
eval_annotations_of throws if the passed in reflection handle is not
eval_is_function (and various others). Now, eval_is_function uses
maybe_get_first_fn to look through BASELINK/OVERLOAD etc., but
eval_annotations_of wasn't doing that and ICEd on
else if (TYPE_P (r))
r = TYPE_ATTRIBUTES (r);
else if (DECL_P (r))
r = DECL_ATTRIBUTES (r);
else
gcc_unreachable ();
because r isn't a decl nor type (nor REFLECT_BASE earlier).
2026-01-29 Jakub Jelinek <jakub@redhat.com>
PR c++/123866
* reflect.cc (eval_annotations_of): Use maybe_get_first_fn.
* g++.dg/reflect/annotations10.C: New test.
Diffstat (limited to 'libjava/testsuite/libjava.lang/PR25535.java')
0 files changed, 0 insertions, 0 deletions
