aboutsummaryrefslogtreecommitdiff
path: root/gcc/c
diff options
context:
space:
mode:
authorGary Dismukes <dismukes@adacore.com>2022-03-31 16:33:01 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-18 08:41:01 +0000
commitdf61c5dc3a16178834651d3437da6fa4490b480b (patch)
treeea353aec3e3d42dec37aea40eb2a0dc8cf4b37a0 /gcc/c
parent16b8ba101f770503f363c095d7be5c055705b84b (diff)
downloadgcc-df61c5dc3a16178834651d3437da6fa4490b480b.zip
gcc-df61c5dc3a16178834651d3437da6fa4490b480b.tar.gz
gcc-df61c5dc3a16178834651d3437da6fa4490b480b.tar.bz2
[Ada] Overriding error on type derived from discriminated untagged private type
When a derived type DT has an untagged private parent type PT with a discriminant, where the full type of PT is tagged, and DT inherits a function F with an anonymous access result that designates the type, the compiler wrongly reports an error saying that DT must be declared abstract or F overridden. A test is added to exclude checking the abstract overriding rules that should only apply to inherited subprograms of tagged derived types. gcc/ada/ * sem_ch3.adb (Check_Abstract_Overriding): If the type is derived from an untagged type, then don't perform any of the abstract overriding error checks.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions