]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Minor cleanups in generic formal matching
authorBob Duff <duff@adacore.com>
Mon, 29 Apr 2024 12:35:43 +0000 (08:35 -0400)
committerMarc Poulhiès <poulhies@adacore.com>
Thu, 13 Jun 2024 13:30:33 +0000 (15:30 +0200)
commit79a35e558e74fd61fa265e0307f2296114ab1b86
tree48c2887313101046673f492580e50805bbafc560
parenta028b7f0090e82e79a5458b0e7e34915b377c04c
ada: Minor cleanups in generic formal matching

Minor rewording of a warning.
Disallow positional notation for <> (but disable this check),
and fix resulting errors.
Copy use clauses.

gcc/ada/

* sem_ch12.adb (Check_Fixed_Point_Actual): Minor rewording; it seems
more proper to say "operator" rather than "operation".
(Matching_Actual): Give an error for <> in positional notation.
This is a syntax error. Disable this for now.
(Analyze_Associations): Copy the use clause in all cases.
The "mustn't recopy" comment seems wrong, because New_Copy_Tree
preserves Slocs.
* libgnat/a-ticoau.ads: Fix violation of new postion-box error.
* libgnat/a-wtcoau.ads: Likewise.
* libgnat/a-ztcoau.ads: Likewise.
gcc/ada/libgnat/a-ticoau.ads
gcc/ada/libgnat/a-wtcoau.ads
gcc/ada/libgnat/a-ztcoau.ads
gcc/ada/sem_ch12.adb