aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/debug.adb
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2022-05-24 20:38:01 +0200
committerPierre-Marie de Rodat <derodat@adacore.com>2022-07-04 07:45:53 +0000
commit4030e83c276c63700b62c3cebd49097f83cf6288 (patch)
treeb3946c2a4282b9631fd36c66d6aec03dcb8b6886 /gcc/ada/debug.adb
parenta8a1da109efe9b12183353faa87b113f6992898f (diff)
downloadgcc-4030e83c276c63700b62c3cebd49097f83cf6288.zip
gcc-4030e83c276c63700b62c3cebd49097f83cf6288.tar.gz
gcc-4030e83c276c63700b62c3cebd49097f83cf6288.tar.bz2
[Ada] Give missing error on ambiguous operand of equality operator
When the code responsible for giving errors on ambiguous operands of comparison and equality operators was moved from the 1st phase (analysis) to the 2nd phase (resolution) of semantic processing, it was incorrectly restricted to the operator case, which was valid during the 1st phase but is not during the 2nd phase. gcc/ada/ * sem_res.adb (Resolve_Comparison_Op): Deal with ambiguous operands in all cases. (Resolve_Equality_Op): Likewise, except for the case of the implicit inequality operator created for a user-defined operator that is not an intrinsic subprogram.
Diffstat (limited to 'gcc/ada/debug.adb')
0 files changed, 0 insertions, 0 deletions