aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch6.adb
diff options
context:
space:
mode:
authorArnaud Charlet <charlet@gcc.gnu.org>2009-04-15 14:21:57 +0200
committerArnaud Charlet <charlet@gcc.gnu.org>2009-04-15 14:21:57 +0200
commitf66d46eccac6bc71129198d8c6c4e97a9363d6d9 (patch)
treebc21ed8261de190b0407a146cf0563ccdeb9263b /gcc/ada/exp_ch6.adb
parentbafc9e1d9844e54d24656a2da4de4aabcb1d2f47 (diff)
downloadgcc-f66d46eccac6bc71129198d8c6c4e97a9363d6d9.zip
gcc-f66d46eccac6bc71129198d8c6c4e97a9363d6d9.tar.gz
gcc-f66d46eccac6bc71129198d8c6c4e97a9363d6d9.tar.bz2
[multiple changes]
2009-04-15 Robert Dewar <dewar@adacore.com> * sem_ch13.adb (Unchecked_Conversions): Store source location instead of node for location for warning messages. * gnatchop.adb: Minor reformatting 2009-04-15 Ed Schonberg <schonberg@adacore.com> * exp_ch6.adb: additional guard for renaming declarations for in parameters of an array type. From-SVN: r146105
Diffstat (limited to 'gcc/ada/exp_ch6.adb')
-rw-r--r--gcc/ada/exp_ch6.adb1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/ada/exp_ch6.adb b/gcc/ada/exp_ch6.adb
index edb08c3..6a869de 100644
--- a/gcc/ada/exp_ch6.adb
+++ b/gcc/ada/exp_ch6.adb
@@ -3806,6 +3806,7 @@ package body Exp_Ch6 is
and then not Is_Tagged_Type (Etype (A))
and then
(not Is_Array_Type (Etype (A))
+ or else not Is_Object_Reference (A)
or else Is_Bit_Packed_Array (Etype (A)))
then
Decl :=