aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-02-02 21:04:18 +0100
committerPierre-Marie de Rodat <derodat@adacore.com>2022-05-11 08:53:21 +0000
commitc63b798f88aa82de32789b6a2ae5f387e58165c7 (patch)
tree6da8998a70ecc6d5eb5c40066dbf7377ec620ccc /gcc/tree.h
parentbd97da66c886a69c2d831dad1b3ffe06aa1879fe (diff)
downloadgcc-c63b798f88aa82de32789b6a2ae5f387e58165c7.zip
gcc-c63b798f88aa82de32789b6a2ae5f387e58165c7.tar.gz
gcc-c63b798f88aa82de32789b6a2ae5f387e58165c7.tar.bz2
[Ada] Fix spurious ambiguity for if_expression containing operator
It comes from a discrepancy in the analysis of binary operators, between the predefined ones for which we register an interpretation with the base type and the user-defined ones for which we register an interpretation with the subtype directly. This is harmless in almost all cases because the two interpretations do not differ by this type property only, but is problematic when the operation is the dependent expression of a conditional expression, because it causes two interpretations of the conditional expression to be registered, which this time differ by this type property only, thus making them impossible to be disambiguated later. gcc/ada/ * sem_ch4.adb (Analyze_User_Defined_Binary_Op): Use the base type in the interpretation of the operator.
Diffstat (limited to 'gcc/tree.h')
0 files changed, 0 insertions, 0 deletions