[Bug ada/126553] crash on Unchecked_Union component with -gnateV
"cvs-commit at gcc dot gnu.org via Gcc-bugs" <[email protected]> Sat, 01 Aug 2026 16:47:27 +0000
| Newsgroups | gmane.comp.gcc.bugs |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126553 --- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Eric Botcazou <[email protected]>: https://gcc.gnu.org/g:3f57fe8cc686317b22b32e0c77b7c2eddae022cb commit r17-2875-g3f57fe8cc686317b22b32e0c77b7c2eddae022cb 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.