[Bug ada/126553] crash on Unchecked_Union component with -gnateV
"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]> Sun, 02 Aug 2026 12:14:13 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126553 --- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:6fe0e2898efe3391183a4afb246df6330c6a5ec4 commit r15-11452-g6fe0e2898efe3391183a4afb246df6330c6a5ec4 Author: Eric Botcazou <[email protected]> Date: Sat Aug 1 18:44:12 2026 +0200 Ada: Fix crash on Unchecked_Union component with -gnateV This is the same bug as PR ada/123857, but at a nested level, and the fix is the same 1-liner but at a different place. gcc/ada/ PR ada/126553 * exp_attr.adb (Build_Record_VS_Func.Validate_Field): Do nothing if the field is of an Unchecked_Union type. gcc/testsuite/ * gnat.dg/unchecked_union5.adb: New test.