This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/27225] Wide_String slice assignment in nested procedure does not work properly
- From: "bauhaus at futureapps dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Apr 2006 02:35:03 -0000
- Subject: [Bug ada/27225] Wide_String slice assignment in nested procedure does not work properly
- References: <bug-27225-5804@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from bauhaus at futureapps dot de 2006-04-30 02:35 -------
One more that doesn't work:
result(txt'first .. txt'first + 3) := ('x', 'x', 'x', 'x');
These rewritten assignments do work as expected
result(txt'first .. txt'first + 3) := (1 .. 4 => 'x');
result(txt'first .. txt'first + 3) :=
(1 => 'x', 2 => 'x', 3 => 'x', 4 => 'x');
result(txt'first .. txt'first + 3) :=
(txt'first .. txt'first + 3 => 'x');
referring to
Target: i686-pc-linux-gnu
Configured with: ../../gcc/configure --enable-threads --disable-nls
--enable-languages=c,ada,c++,fortran
Thread model: posix
gcc version 4.1.0
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27225