This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Ada standard elaboration order
- From: Christophe Meudec <meudecc at itcarlow dot ie>
- To: gcc at gcc dot gnu dot org
- Date: Fri, 19 Oct 2007 15:56:20 +0100
- Subject: Ada standard elaboration order
- Reply-to: meudecc at itcarlow dot ie
Just an old newbie question.
when I look at the elaboration order generated by gnatbind for the
standard libraries I get the following:
...
system.soft_links (spec)
system.soft_links (body)
...
ada.exceptions (body)
...
but the body of soft_links contains
Ada.Exceptions.Save_Occurrence
(NT_TSD.Current_Excep, Ada.Exceptions.Null_Occurrence);
So how can the body of system.soft_links be elaborated prior to the body
of ada.exceptions since it is dependent on it?
Is my understanding flawed?
chris