[Ada] Fix asymmetries in detection of overlapping actuals
authorPiotr Trojanek <trojanek@adacore.com>
Tue, 16 Mar 2021 17:38:53 +0000 (18:38 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Fri, 18 Jun 2021 08:36:49 +0000 (04:36 -0400)
commit7120f082181be2fc8cfc4f121809da71d2554503
tree4efb2d50f8523d8ec478a085db2105838e44645f
parentcd344e9570398b7436a4ed854618d5c186b20c02
[Ada] Fix asymmetries in detection of overlapping actuals

gcc/ada/

* sem_warn.adb (Warn_On_Overlapping_Actuals): Examine types of
both formal parameters; refactor a complex detection of
by-reference types.
gcc/ada/sem_warn.adb