[Ada] Better diagnostic for new language features
authorPiotr Trojanek <trojanek@adacore.com>
Mon, 30 Nov 2020 13:54:24 +0000 (14:54 +0100)
committerPierre-Marie de Rodat <derodat@adacore.com>
Thu, 17 Dec 2020 10:49:21 +0000 (05:49 -0500)
commit383814537116f6a3c5c08aa9a9069fb9f438d52c
tree99118d37a58b63bf5eaabb44a5386dc1e5476c10
parent11ad366da5edd79b64095d809c0e9debe80edfb2
[Ada] Better diagnostic for new language features

gcc/ada/

* par-ch12.adb (P_Formal_Derived_Type_Definition): Complain
about formal type with aspect specification, which only become
legal in Ada 2020.
* par-ch9.adb (P_Protected_Operation_Declaration_Opt): Reuse
Error_Msg_Ada_2005_Extension.
(P_Entry_Declaration): Likewise.
* scng.adb (Scan): Improve diagnostics for target_name; emit
error, but otherwise continue in earlier than Ada 2020 modes.
gcc/ada/par-ch12.adb
gcc/ada/par-ch9.adb
gcc/ada/scng.adb