diff options
author | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-12-21 14:51:03 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2011-12-21 14:51:03 +0100 |
commit | 4172a8e33873fc9c93121fccfa97d5d22aff1537 (patch) | |
tree | 3954a53c4489b3a57bd7059ad7f7285d618d3db4 /gcc/ada/a-cforse.adb | |
parent | 1c1631789db78470153d892bb17be385ff82088b (diff) | |
download | gcc-4172a8e33873fc9c93121fccfa97d5d22aff1537.tar.gz |
[multiple changes]
2011-12-21 Vincent Celier <celier@adacore.com>
* prj-nmsc.adb (Report_No_Sources): Remove argument Lang. Report
no sources even for languages that are not allowed.
(Add_Source): Get the source even when the language is not allowed.
2011-12-21 Robert Dewar <dewar@adacore.com>
* sem_ch6.adb (Process_Formals): Add defensive code.
2011-12-21 Ed Schonberg <schonberg@adacore.com>
* sem_ch7.adb, sem_ch13.adb (Analyze_Package_Specification): Build the
invariant procedure of a type declaration that is a completion and has
aspect specifications.
(Build_Invariant_Procedure): If the procedure is built for a
type declaration that is a completion, analyze body expliitly
because all private declarations have been already analyzed.
2011-12-21 Claire Dross <dross@adacore.com>
* a-cfdlli.adb, a-cfhase.adb, a-cforma.adb, a-cforse.adb,
a-cofove.adb: Minor reformating on formal containers
2011-12-21 Vincent Celier <celier@adacore.com>
* makeutl.adb (Mains.Complete_Mains.Do_Complete): Remove
any main that is not in the list of restricted languages.
(Insert_Project_Sources.Do_Insert): Only add sources of languages
in the list of restricted languages.
2011-12-21 Ed Schonberg <schonberg@adacore.com>
* sem_res.adb (Valid_Conversion): A type conversion is valid when
the target type is an anonymous access type and the operand is a
rewriting of an allocator. The conversion is typically inserted
when the designated type is an interface.
2011-12-21 Ed Schonberg <schonberg@adacore.com>
* exp_ch9.adb (Establish_Task_Master): If the enclosing block
has no declarations, create new declarative list for it.
2011-12-21 Matthew Heaney <heaney@adacore.com>
* a-rbtgbk.adb (Generic_Conditional_Insert): Fixed incorrect comment.
From-SVN: r182586
Diffstat (limited to 'gcc/ada/a-cforse.adb')
-rw-r--r-- | gcc/ada/a-cforse.adb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/ada/a-cforse.adb b/gcc/ada/a-cforse.adb index 794b47baf9c..9872f2ce30e 100644 --- a/gcc/ada/a-cforse.adb +++ b/gcc/ada/a-cforse.adb @@ -452,11 +452,7 @@ package body Ada.Containers.Formal_Ordered_Sets is pragma Assert (Vet (Container, Position.Node), "bad cursor in Element"); - declare - N : Tree_Types.Nodes_Type renames Container.Nodes; - begin - return N (Position.Node).Element; - end; + return Container.Nodes (Position.Node).Element; end Element; ------------------------- |