diff options
author | Robert Dewar <dewar@adacore.com> | 2014-02-20 13:38:06 +0000 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2014-02-20 14:38:06 +0100 |
commit | e449429213d601e60b19d1d5db6dd761df98c2c5 (patch) | |
tree | cecff9bfdd85fd8f02159f7941edbadfef64e28c /gcc/ada/par-util.adb | |
parent | 9576e7b112cad4adb1f9f37d913b7161640808d8 (diff) | |
download | gcc-e449429213d601e60b19d1d5db6dd761df98c2c5.zip gcc-e449429213d601e60b19d1d5db6dd761df98c2c5.tar.gz gcc-e449429213d601e60b19d1d5db6dd761df98c2c5.tar.bz2 |
einfo.ads: Minor comment addition: Etype of package is Standard_Void_Type.
2014-02-20 Robert Dewar <dewar@adacore.com>
* einfo.ads: Minor comment addition: Etype of package is
Standard_Void_Type.
* checks.adb, exp_aggr.adb, exp_atag.adb, exp_attr.adb, exp_ch13.adb,
exp_ch2.adb, exp_ch3.adb, exp_ch4.adb, exp_ch5.adb, exp_ch6.adb,
exp_ch7.adb, exp_ch9.adb, exp_dbug.adb, exp_disp.adb, exp_imgv.adb,
exp_intr.adb, exp_prag.adb, exp_sel.adb, exp_strm.adb, exp_util.adb,
freeze.adb, rtsfind.adb, sem_aggr.adb, sem_attr.adb, sem_ch10.adb,
sem_ch12.adb, sem_ch13.adb, sem_ch3.adb, sem_ch4.adb, sem_ch5.adb,
sem_ch6.adb, sem_ch8.adb, sem_dim.adb, sem_prag.adb, sem_res.adb,
sem_util.adb, tbuild.adb, tbuild.ads: Remove New_Reference_To.
Replace all calls with calls to New_Occurrence_Of.
2014-02-20 Robert Dewar <dewar@adacore.com>
* par-util.adb (Ignore, case of right paren): Make this a
serious error.
From-SVN: r207942
Diffstat (limited to 'gcc/ada/par-util.adb')
-rw-r--r-- | gcc/ada/par-util.adb | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gcc/ada/par-util.adb b/gcc/ada/par-util.adb index ff75cf1..ec9a916 100644 --- a/gcc/ada/par-util.adb +++ b/gcc/ada/par-util.adb @@ -429,9 +429,23 @@ package body Util is Error_Msg_SC -- CODEFIX ("|extra ""("" ignored"); + -- Note: the following error used to be labeled as a non-serious + -- error like the other similar messages here (with a | at the start + -- of the message). But this caused some annoying cascaded errors + -- that were confusing, as shown by this example: + + -- A : array (1 .. 9) of Integer := + -- ((1 .. 2) => 0, + -- 1 2 3 + -- >>> positional aggregate cannot have one component + -- >>> named association cannot follow positional association + -- >>> extra ")" ignored + + -- So we decided to label it as serious after all + elsif T = Tok_Right_Paren then Error_Msg_SC -- CODEFIX - ("|extra "")"" ignored"); + ("extra "")"" ignored"); elsif T = Tok_Semicolon then Error_Msg_SC -- CODEFIX |