re PR ada/9087 (Component_Size for packed array returns wrong values)
authorThomas Quinot <quinot@adacore.com>
Mon, 5 Sep 2005 07:58:05 +0000 (09:58 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Mon, 5 Sep 2005 07:58:05 +0000 (09:58 +0200)
commitc4e5e10fdd72b4375e9b092a5da6c1ca0a751575
tree5dbd152d7a4ba735ea4d5628effde4e817eb6795
parentd52f1094e50cf2120eebc5bf2a63ed0aa56c825a
re PR ada/9087 (Component_Size for packed array returns wrong values)

2005-09-01  Thomas Quinot  <quinot@adacore.com>
    Ed Schonberg  <schonberg@adacore.com>
    Robert Dewar  <dewar@adacore.com>

* sem_attr.adb (Resolve_Attribute, case 'Address): For an illegal
'Address attribute reference with an overloaded prefix, use the
location of the prefix (not the location of the attribute reference) as
the error location.
(Analyze_Attribute, case 'Size): The name of an enumeration literal, or
a function renaming thereof, is a valid prefix for 'Size (where it is
intepreted as a function call).
(Statically_Denotes_Entity): New predicate to determine whether the
prefix of an array attribute can be considered static.

PR ada/9087
(Eval_Attr): Fix failure to evaluate Component_Size for
unconstrained arrays (resulted in wrong value in packed case, since
back end cannot handle this case)

From-SVN: r103876
gcc/ada/sem_attr.adb