diff options
author | Gary Dismukes <dismukes@adacore.com> | 2020-06-03 19:53:33 -0400 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2020-07-16 05:17:55 -0400 |
commit | 7e06a62f5bb4baaf3701a9a29e03c80d2ae50a49 (patch) | |
tree | b55d885e03702f44a908632cd9dc4d6b9fc7545c /gcc/explow.c | |
parent | 6805c1c6a6254b6df6799d820c0d08a3dbfbec96 (diff) | |
download | gcc-7e06a62f5bb4baaf3701a9a29e03c80d2ae50a49.zip gcc-7e06a62f5bb4baaf3701a9a29e03c80d2ae50a49.tar.gz gcc-7e06a62f5bb4baaf3701a9a29e03c80d2ae50a49.tar.bz2 |
[Ada] AI12-0042: Type invariant checking rules
gcc/ada/
* exp_ch4.adb (Expand_N_Type_Conversion): Handle the case of
applying an invariant check for a conversion to a class-wide
type whose root type has a type invariant, when the conversion
appears within the immediate scope of the type and the
expression is of a specific tagged type.
* sem_ch3.adb (Is_Private_Primitive): New function to determine
whether a primitive subprogram is a private operation.
(Check_Abstract_Overriding): Enforce the restriction imposed by
AI12-0042 of requiring overriding of an inherited nonabstract
private operation when the ancestor has a class-wide type
invariant and the ancestor's private operation is visible.
(Derive_Subprogram): Set Requires_Overriding on a subprogram
inherited from a visible private operation of an ancestor to
which a Type_Invariant'Class expression applies.
Diffstat (limited to 'gcc/explow.c')
0 files changed, 0 insertions, 0 deletions