[Ada] ACATS 4.1R-c611a04: Class-wide preconditions in dispatching calls

2021-06-16 Thread Pierre-Marie de Rodat
Completing previous patch since it introduced a regression on ACATS c611a03 under certified runtime. Tested on x86_64-pc-linux-gnu, committed on trunk gcc/ada/ * exp_disp.adb (Build_Class_Wide_Check): Ensure that evaluation of actuals is side effects free (since the check

[Ada] ACATS 4.1R-c611a04: Class-wide preconditions in dispatching calls

2021-05-06 Thread Pierre-Marie de Rodat
This patch is a partial implementation of the semantics mandated in AI12-0195 concerning class-wide preconditions on dispatching calls: the precondition that applies is that of the denoted subprogram entity, not that of the body that is actually executed. Tested on x86_64-pc-linux-gnu, committed