exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the result are the bound...
authorEd Schonberg <schonberg@adacore.com>
Fri, 6 Apr 2007 09:21:15 +0000 (11:21 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Fri, 6 Apr 2007 09:21:15 +0000 (11:21 +0200)
2007-04-06  Ed Schonberg  <schonberg@adacore.com>

* exp_pakd.adb (Expand_Packed_Boolean_Operator): The bounds of the
result are the bounds of the left operand, not the right.

From-SVN: r123567

gcc/ada/exp_pakd.adb

index 472c0da..fe2eb36 100644 (file)
@@ -1824,7 +1824,7 @@ package body Exp_Pakd is
                P := Make_Op_Xor (Loc, L, R);
             end if;
 
-            Rewrite (N, Unchecked_Convert_To (Rtyp, P));
+            Rewrite (N, Unchecked_Convert_To (Ltyp, P));
          end;
 
       --  For the array case, we insert the actions