decl.c (gnat_to_gnu_entity): For a constant object whose type has self-referential size...
* decl.c (gnat_to_gnu_entity) <object>: For a constant object whose type has self-referential size, get the size from the initializing expression directly if it is also a constant whose nominal type has self-referential size. From-SVN: r133831
Showing
- gcc/ada/ChangeLog 7 additions, 0 deletionsgcc/ada/ChangeLog
- gcc/ada/decl.c 24 additions, 5 deletionsgcc/ada/decl.c
- gcc/testsuite/ChangeLog 4 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/gnat.dg/specs/discr_record_constant.ads 22 additions, 0 deletionsgcc/testsuite/gnat.dg/specs/discr_record_constant.ads
Loading
Please register or sign in to comment