re PR ada/58264 (incorrect bounds of string when assigned from dereference of functio...
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 18 Sep 2013 10:51:43 +0000 (10:51 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 18 Sep 2013 10:51:43 +0000 (10:51 +0000)
commit088d3b0fc3d97093c3e9c8a9313be2010f55af54
tree32460a96cd626f9b413c15aa5d0ecb979bdd3781
parent5ef054c39266d4a7767f070bf9b540e113a72f97
re PR ada/58264 (incorrect bounds of string when assigned from dereference of function result)

PR ada/58264
* gcc-interface/trans.c (Attribute_to_gnu): Define GNAT_PREFIX local
variable and use it throughout.
<Attr_Length>: Note whether the prefix is the dereference of a pointer
to unconstrained array and, in this case, capture the result for both
Attr_First and Attr_Last.

From-SVN: r202694
gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/array_bounds_test2.adb [new file with mode: 0644]