]> git.ipfire.org Git - thirdparty/gcc.git/commit
checks.ads, checks.adb (Selected_Range_Checks): No range check is required for a...
authorThomas Quinot <quinot@adacore.com>
Fri, 6 Apr 2007 09:18:09 +0000 (11:18 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 6 Apr 2007 09:18:09 +0000 (11:18 +0200)
commit675d607041a286e80da64c0de803ee2ff9669e64
treede49bf424086aff1103408245a1df50cff482b5d
parent4cd52f5eab66c5cb3fb60f535f2cff73864a6d5f
checks.ads, checks.adb (Selected_Range_Checks): No range check is required for a conversion between two...

2007-04-06  Thomas Quinot  <quinot@adacore.com>
    Ed Schonberg  <schonberg@adacore.com>
    Gary Dismukes  <dismukes@adacore.com>

* checks.ads, checks.adb (Selected_Range_Checks): No range check is
required for a conversion between two access-to-unconstrained-array
types.
(Expr_Known_Valid): Validity checks do not apply to discriminants, but
to discriminant constraints on discriminant objects. This rule must
apply as well to discriminants of protected types in private components.
(Null_Exclusion_Static_Checks): If No_Initialization is set on an
object of a null-excluding access type then don't require the
the object declaration to have an expression and don't emit a
run-time check.

From-SVN: r123554
gcc/ada/checks.adb
gcc/ada/checks.ads