https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124923
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Marc Poulhies <[email protected]>: https://gcc.gnu.org/g:fc2164a2168b8c80bad5bac69e2ebc03f904e89f commit r17-1292-gfc2164a2168b8c80bad5bac69e2ebc03f904e89f Author: Eric Botcazou <[email protected]> Date: Wed May 6 18:52:59 2026 +0200 ada: Fix fallout of latest change to Valid_Scalars attribute The attribute does not work for all private tagged types, but this was not detected in the case where the full view alone is tagged. gcc/ada/ChangeLog: PR ada/124923 * exp_attr.adb (Expand_N_Attribute_Reference) <Valid_Scalars>: Also bail out for a private type whose full view alone is tagged. * sem_attr.adb (Analyze_Attribute) <Valid_Scalars>: Also warn for a private type whose only full view alone is tagged.
