aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/fe.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-02-07 11:44:29 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-12 12:38:36 +0000
commit49a31a140db31b1513d10af5bdc65fee046162fa (patch)
treec367903ecd5f0dd314399a52450a47a1819168c4 /gcc/ada/fe.h
parent91d68769419b64ef9843c4c1eac5261217693b1e (diff)
downloadgcc-49a31a140db31b1513d10af5bdc65fee046162fa.zip
gcc-49a31a140db31b1513d10af5bdc65fee046162fa.tar.gz
gcc-49a31a140db31b1513d10af5bdc65fee046162fa.tar.bz2
[Ada] Revamp analysis of conditional expressions
The current implementation is skewed toward the first dependent expression and does not look into the interpretations of the others if the first one is not overloaded, which can create spurious ambiguities. And more precise error messages are now given if the types of the dependent expressions are not compatible. gcc/ada/ * sem_ch4.adb (Analyze_Case_Expression): Rewrite. (Analyze_If_Expression): Likewise. (Possible_Type_For_Conditional_Expression): New function. * sem_type.adb (Specific_Type): Retur the base type in more cases.
Diffstat (limited to 'gcc/ada/fe.h')
0 files changed, 0 insertions, 0 deletions