[Ada] Handle properly user_defined literals given by operators.
authorEd Schonberg <schonberg@adacore.com>
Sun, 5 Sep 2021 15:22:52 +0000 (11:22 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 4 Oct 2021 08:45:12 +0000 (08:45 +0000)
commit6a53553086657d6b4668f0c3a2030ec1f63447d0
tree2658a1092bd1d06c52e095a9d8e679ccfb49517c
parent861dc87d7513f920365f0cf52be7406ca06711cf
[Ada] Handle properly user_defined literals given by operators.

gcc/ada/

* sem_ch6.adb (Analyze_Operator_Symbol): Recognize strings as
operator names when they are the value of one of the Ada2022
aspects for User_Defined_Literals.
* sem_ch13.adb (Analyze_One_Aspect): Handle an aspect value
given by an Operator_Name.
(Validate_Literal_Aspect): Call Analyze_Operator_Symbol when
needed.
gcc/ada/sem_ch13.adb
gcc/ada/sem_ch6.adb