aboutsummaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorGary Dismukes <dismukes@adacore.com>2020-06-03 19:53:33 -0400
committerPierre-Marie de Rodat <derodat@adacore.com>2020-07-16 05:17:55 -0400
commit7e06a62f5bb4baaf3701a9a29e03c80d2ae50a49 (patch)
treeb55d885e03702f44a908632cd9dc4d6b9fc7545c /gcc/explow.c
parent6805c1c6a6254b6df6799d820c0d08a3dbfbec96 (diff)
downloadgcc-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