diff options
author | Ed Schonberg <schonberg@adacore.com> | 2005-03-18 12:48:18 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2005-03-18 12:48:18 +0100 |
commit | 2b599687903bc76b54fb4635116ba4a9bc821a34 (patch) | |
tree | 948a3523b3f7a97e8939f13acea2d5e630af7f2c /gcc | |
parent | 7b1da1d017af4e414586eb027f06eb9b8c41fcdd (diff) | |
download | gcc-2b599687903bc76b54fb4635116ba4a9bc821a34.zip gcc-2b599687903bc76b54fb4635116ba4a9bc821a34.tar.gz gcc-2b599687903bc76b54fb4635116ba4a9bc821a34.tar.bz2 |
exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to entry formals.
2005-03-17 Ed Schonberg <schonberg@adacore.com>
* exp_ch2.adb (In_Assignment_Context): Recognize slice assignments to
entry formals.
From-SVN: r96665
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ada/exp_ch2.adb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ada/exp_ch2.adb b/gcc/ada/exp_ch2.adb index e68e9a6..bb85541 100644 --- a/gcc/ada/exp_ch2.adb +++ b/gcc/ada/exp_ch2.adb @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2004 Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2005 Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -475,7 +475,8 @@ package body Exp_Ch2 is return In_Assignment_Context (Parent (N)); elsif (Nkind (Parent (N)) = N_Selected_Component - or else Nkind (Parent (N)) = N_Indexed_Component) + or else Nkind (Parent (N)) = N_Indexed_Component + or else Nkind (Parent (N)) = N_Slice) and then In_Assignment_Context (Parent (N)) then return True; |