This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/17318] New: Put_Line (X'Img (Index)), index ignored
- From: "ludovic dot brenta at insalien dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2004 13:17:39 -0000
- Subject: [Bug ada/17318] New: Put_Line (X'Img (Index)), index ignored
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
(Debian bug #248695)
with text_io; use text_io;
procedure Test_248685 is
x: integer := 12345;
begin
put(integer'image(x)(4));
new_line;
put(x'img(4));
new_line;
end Test_248685;
The results expected are:
3
3
Instead, the program prints:
3
12345
--
Ludovic Brenta.
--
Summary: Put_Line (X'Img (Index)), index ignored
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: ada
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ludovic dot brenta at insalien dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17318