diff options
| author | Jakub Jelinek <jakub@redhat.com> | 2026-02-09 17:54:10 +0100 |
|---|---|---|
| committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2026-02-09 17:54:10 +0100 |
| commit | a2e2fdf2f52c0d73e63a3005db459b4fa09bec7f (patch) | |
| tree | 9316271ce2754531f187f522d95476d07a346539 /libjava/testsuite/libjava.compile | |
| parent | 403b38e7b82cfae5fbbb825990b8a3aa7a78f476 (diff) | |
| download | gcc-a2e2fdf2f52c0d73e63a3005db459b4fa09bec7f.zip gcc-a2e2fdf2f52c0d73e63a3005db459b4fa09bec7f.tar.gz gcc-a2e2fdf2f52c0d73e63a3005db459b4fa09bec7f.tar.bz2 | |
c++: Add self reference to define_aggregate created aggregates [PR123984]
We weren't adding the DECL_SELF_REFERENCE_P TYPE_DECL to TYPE_FIELDS of
eval_define_aggregate created aggregates, which resulted in ICE in
accessible_base_p which relies on DECL_SELF_REFERENCE_P TYPE_DECL to be
present in base classes of other classes.
2026-02-09 Jakub Jelinek <jakub@redhat.com>
PR c++/123984
* reflect.cc (eval_define_aggregate): Set TYPE_BEING_DEFINED on type
after pushclass, call build_self_reference, remove assertion that
TYPE_FIELDS (type) is NULL and instead set fields to
TYPE_FIELDS (type).
* g++.dg/reflect/define_aggregate6.C: New test.
Diffstat (limited to 'libjava/testsuite/libjava.compile')
0 files changed, 0 insertions, 0 deletions
