[Ada] Warn about overlapping actuals in all versions of Ada
Pierre-Marie de Rodat
Fri Jun 18 08:38:27 GMT 2021
Overlapping actuals of elementary types are illegal since Ada 2012; all
other overlapping actuals are now reported as warnings regardless of the
Ada version (because they are equally suspicious).
We even had a comment:
"Overlap is only illegal in Ada 2012 in the case of elementary
types (passed by copy). For other types we always have a warning in
but it was not really implemented until now.
Tested on x86_64-pc-linux-gnu, committed on trunk
* sem_warn.adb (Warn_On_Overlapping_Actuals): Cleanup conditions
related to Ada_Version.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1698 bytes
Desc: not available
More information about the Gcc-patches