summaryrefslogtreecommitdiffstats
path: root/gcc/ada/a-cbhase.ads
diff options
context:
space:
mode:
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-29 14:25:19 +0000
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-29 14:25:19 +0000
commit2bb1c36656bb1bcac3ae654ecbdc54b582ed298a (patch)
tree1a7fbadf4793fca844818142d46165e676ff37cc /gcc/ada/a-cbhase.ads
parent15044392b374476c15645b61ce3802439e82d792 (diff)
downloadppe42-gcc-2bb1c36656bb1bcac3ae654ecbdc54b582ed298a.tar.gz
ppe42-gcc-2bb1c36656bb1bcac3ae654ecbdc54b582ed298a.zip
2011-08-29 Robert Dewar <dewar@adacore.com>
* a-cdlili.ads, a-coinve.ads, a-coorma.adb, a-coorma.ads, s-tassta.adb, a-cborma.adb, a-cborma.ads, a-cohama.ads, a-coorse.ads, a-cbhama.ads, a-cborse.ads, a-cobove.adb, a-cobove.ads, a-cbhase.ads: Minor reformatting. 2011-08-29 Tristan Gingold <gingold@adacore.com> * exp_ch7.adb, exp_ch7.ads (Build_Exception_Handler): Move its spec to package spec. * exp_intr.adb (Expand_Unc_Deallocation): Use Build_Exception_Handler. * a-except.adb, a-except-2005.adb (Rcheck_22): Do not defer aborts while raising PE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178245 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ada/a-cbhase.ads')
-rw-r--r--gcc/ada/a-cbhase.ads6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ada/a-cbhase.ads b/gcc/ada/a-cbhase.ads
index 4f3ea3107f9..711c0116963 100644
--- a/gcc/ada/a-cbhase.ads
+++ b/gcc/ada/a-cbhase.ads
@@ -429,6 +429,12 @@ private
type Set_Access is access all Set;
for Set_Access'Storage_Size use 0;
+ -- Note: If a Cursor object has no explicit initialization expression,
+ -- it must default initialize to the same value as constant No_Element.
+ -- The Node component of type Cursor has scalar type Count_Type, so it
+ -- requires an explicit initialization expression of its own declaration,
+ -- in order for objects of record type Cursor to properly initialize.
+
type Cursor is record
Container : Set_Access;
Node : Count_Type := 0;
OpenPOWER on IntegriCloud