[multiple changes]
authorArnaud Charlet <charlet@gcc.gnu.org>
Tue, 29 Jul 2014 14:08:02 +0000 (16:08 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 29 Jul 2014 14:08:02 +0000 (16:08 +0200)
commit422e02cfdf696450410b69d0c6491102ebc2970e
treeecd41f2d3e1efce20e9a370dd5399eae35d9ae03
parent0677a1c750acae35d74a1d45d95c42d883cd58a6
[multiple changes]

2014-07-29  Thomas Quinot  <quinot@adacore.com>

* sem_ch3.adb (Constrain_Corresponding_Record): For the case
of the subtype created for a record component, do not mark
the subtype as frozen. For one thing, this is anomalous (in
particular, the base type might not itself be frozen yet);
furthermore, proper freezing of the subtype must happen in any
case. So, we just mark the subtype as requiring delayed freezing
(and we'll actually freeze it when generating the init_proc of
the enclosing record).
Also change the name of the constrained record subtype (append a
'C' so that it is clearly different from the unconstrained record
type, "related_idV") to make debugging easier.
(Process_Full_View): When creating a full subtype for a pending
private subtype, re-establish the scope of the private subtype
so that we get proper visibility on outer discriminants.
* exp_ch3.adb (Build_Init_Statements): Freeze any component
subtype that is not frozen yet.

2014-07-29  Vincent Celier  <celier@adacore.com>

* prj-proc.adb (Recursive_Process): Always initialize the
environment when the project is an aggregate project, even when
it is not the root tree.

From-SVN: r213197
gcc/ada/ChangeLog
gcc/ada/exp_ch3.adb
gcc/ada/prj-proc.adb
gcc/ada/sem_ch3.adb