[Bug ada/20012] New: 'pragma Compile_Time_Warning' adds quotation marks to warning text

berndtrog at yahoo dot com gcc-bugzilla@gcc.gnu.org
Wed Feb 16 20:51:00 GMT 2005


Hello,
when I compile this:

procedure Test2
is
   Number : Integer := 2;
   pragma Compile_Time_Warning
        (Number > 1, " > NUmber Is GReater Than 1!");
begin
   null;
end;

with gcc version 3.4.3: 

gcc -c test2.adb

I get this warning:

test2.adb:6:10: warning:   "nu"mber Is "gr"eater Than 1


gcc-4.0.0 has the same problem.

-- 
           Summary: 'pragma Compile_Time_Warning' adds quotation marks to
                    warning text
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: berndtrog at yahoo dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20012



More information about the Gcc-bugs mailing list