diff options
author | Ed Schonberg <schonberg@adacore.com> | 2008-04-08 08:54:13 +0200 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2008-04-08 08:54:13 +0200 |
commit | 8bc65441c9f414aceba4877a593f3e25733aa02b (patch) | |
tree | 7e31f25f348b1b5954ba9019f7d9912422a7cfa2 /gcc/ada | |
parent | 15bac09ddb9f6361b09bca50e654a8c3190b82db (diff) | |
download | gcc-8bc65441c9f414aceba4877a593f3e25733aa02b.zip gcc-8bc65441c9f414aceba4877a593f3e25733aa02b.tar.gz gcc-8bc65441c9f414aceba4877a593f3e25733aa02b.tar.bz2 |
2008-04-08 Ed Schonberg <schonberg@adacore.com>
* par-ch3.adb (P_Type_Declaration) Reject the keyword "synchronized"
in a type declaration, if this is not an interface declaration or
private type extension.
From-SVN: r134045
Diffstat (limited to 'gcc/ada')
-rw-r--r-- | gcc/ada/par-ch3.adb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/par-ch3.adb b/gcc/ada/par-ch3.adb index 3a6fc11..8eb0e71 100644 --- a/gcc/ada/par-ch3.adb +++ b/gcc/ada/par-ch3.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2007, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2008, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -767,6 +767,10 @@ package body Ch3 is -- Interface else + if Token /= Tok_Interface then + Error_Msg_SC ("NEW or INTERFACE expected"); + end if; + Typedef_Node := P_Interface_Type_Definition (Abstract_Present); Abstract_Present := True; |