This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ada/17318] New: Put_Line (X'Img (Index)), index ignored


(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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]