diff options
Diffstat (limited to 'gcc/ada/exp_ch4.adb')
-rw-r--r-- | gcc/ada/exp_ch4.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/ada/exp_ch4.adb b/gcc/ada/exp_ch4.adb index cb1c117b30b..e6ea474eec1 100644 --- a/gcc/ada/exp_ch4.adb +++ b/gcc/ada/exp_ch4.adb @@ -6216,9 +6216,11 @@ package body Exp_Ch4 is Activate_Atomic_Synchronization (N); end if; - -- All done for the non-packed case + -- All done if the prefix is not a packed array implemented specially - if not Is_Packed (Etype (Prefix (N))) then + if not (Is_Packed (Etype (Prefix (N))) + and then Present (Packed_Array_Impl_Type (Etype (Prefix (N))))) + then return; end if; |