[Ada] Improve error message on premature usage of subtypes
authorArnaud Charlet <charlet@adacore.com>
Thu, 2 Apr 2020 07:39:15 +0000 (03:39 -0400)
committerPierre-Marie de Rodat <derodat@adacore.com>
Mon, 15 Jun 2020 08:04:41 +0000 (04:04 -0400)
commitc7df4e55c944986c5fdbe7da341cf6f5e4ef81c6
tree031af47ccd75525d457fb5865d993957798ffdff
parent65e088926639654e51b8e85be481d586505b56b4
[Ada] Improve error message on premature usage of subtypes

2020-06-15  Arnaud Charlet  <charlet@adacore.com>

gcc/ada/

* sem_ch8.adb (Premature_Usage): Add support for subtype
references and replace set of if-then-else by a case statement.
gcc/ada/sem_ch8.adb