[Ada] Better error message for "is null" subunit
authorBob Duff <duff@adacore.com>
Mon, 16 Dec 2019 10:34:03 +0000 (10:34 +0000)
committerPierre-Marie de Rodat <pmderodat@gcc.gnu.org>
Mon, 16 Dec 2019 10:34:03 +0000 (10:34 +0000)
commitdce1ef7a34b2b80d02e36ebc464e642a84b15f2d
tree0670c227bf249f7ff2ee409f30a58a5ad98c5954
parent9c9535f974cb9a348fd99a90d0ab08a32583d337
[Ada] Better error message for "is null" subunit

2019-12-16  Bob Duff  <duff@adacore.com>

gcc/ada/

* sem_ch10.adb (Analyze_Subunit): Give an error if the subunit
is not a proper body. This hides the confusing "duplicate body"
message that was previously given.

From-SVN: r279424
gcc/ada/ChangeLog
gcc/ada/sem_ch10.adb