]> git.ipfire.org Git - thirdparty/gcc.git/commit
[Ada] Warning for 'Class applied to untagged incomplete type
authorGary Dismukes <dismukes@adacore.com>
Fri, 11 Dec 2020 06:01:11 +0000 (01:01 -0500)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 29 Apr 2021 08:00:43 +0000 (04:00 -0400)
commit2d98b9a9a8a4a5eb3f361b7e5fc06b7041ba45e6
tree422701ba8c8e462c4aa668bff37ef60b02608db2
parent2baa4614c8f91015f06b69f09f3ce6360a77c5a8
[Ada] Warning for 'Class applied to untagged incomplete type

gcc/ada/

* sem_ch8.adb (Find_Type): Check the No_Obsolescent_Features
restriction for 'Class applied to an untagged incomplete
type (when Ada_Version >= Ada_2005).  Remove disabling of the
warning message for such usage, along with the ??? comment,
which no longer applies (because the -gnatg switch no longer
sets Warn_On_Obsolescent_Feature).
gcc/ada/sem_ch8.adb