[Ada] Issue better error message for out-of-order keywords in record def
authorYannick Moy <moy@adacore.com>
Wed, 27 Apr 2022 07:52:55 +0000 (09:52 +0200)
committerPierre-Marie de Rodat <derodat@adacore.com>
Wed, 1 Jun 2022 08:43:16 +0000 (08:43 +0000)
commit94e416d23b8cb2824d395230f23fac300ee6d496
tree046aa4f552274cafbee7da98167ac98b6b0fe9f5
parent73514ab714d651795c10e0790217a67eb6b41b48
[Ada] Issue better error message for out-of-order keywords in record def

Various cases of out-of-order keywords in the definition of a record
were already detected. This adds a similar detection after NULL and
RECORD keywords.

gcc/ada/

* par-ch3.adb (P_Known_Discriminant_Part_Opt): Reword error
message to benefit from existing codefix.
(P_Record_Definition): Detect out-of-order keywords in record
definition and issue appropriate messages. Other cases are
already caught at appropriate places.
gcc/ada/par-ch3.adb