]> git.ipfire.org Git - thirdparty/gcc.git/commit
sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the expression...
authorGary Dismukes <dismukes@adacore.com>
Thu, 16 Jun 2005 08:45:32 +0000 (10:45 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Thu, 16 Jun 2005 08:45:32 +0000 (10:45 +0200)
commitbc49df98e8b97ae433a903486a987bd33f44d1f2
treeb97f9441568e799060b26257d413a9430015f467
parent357ac4df50fc0c22a5cee64bee133b4f2fdfba38
sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the expression when the component type is an anonymous...

2005-06-14  Gary Dismukes  <dismukes@adacore.com>

* sem_aggr.adb (Aggregate_Constraint_Checks): Apply a conversion to the
expression when the component type is an anonymous access type to
ensure that appropriate accessibility checks are done.

* sem_ch5.adb (Analyze_Assignment): Apply a implicit conversion to the
expression of an assignment when the target object is of an anonymous
access type. This ensures that required accessibility checks are done.
(One_Bound): Move the check for type Universal_Integer to
Process_Bounds.
(Process_Bounds): Check whether the type of the preanalyzed range is
Universal_Integer, and in that case set Typ to Integer_Type prior
to setting the type of the original range and the calls to One_Bound.

From-SVN: r101057
gcc/ada/sem_aggr.adb
gcc/ada/sem_ch5.adb