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/20012] New: 'pragma Compile_Time_Warning' adds quotation marks to warning text


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


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