http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58264
--- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Wed Sep 18 10:51:43 2013 New Revision: 202694 URL: http://gcc.gnu.org/viewcvs?rev=202694&root=gcc&view=rev Log: 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. Added: trunk/gcc/testsuite/gnat.dg/array_bounds_test2.adb Modified: trunk/gcc/ada/ChangeLog trunk/gcc/ada/gcc-interface/trans.c trunk/gcc/testsuite/ChangeLog