Bug 20012 - 'pragma Compile_Time_Warning' adds quotation marks to warning text
Summary: 'pragma Compile_Time_Warning' adds quotation marks to warning text
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: ada (show other bugs)
Version: 3.4.3
: P2 minor
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
URL:
Keywords: diagnostic
Depends on:
Blocks:
 
Reported: 2005-02-16 18:13 UTC by berndtrog
Modified: 2007-04-30 11:16 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2005-06-14 21:03:56


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description berndtrog 2005-02-16 18:13:05 UTC
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.
Comment 1 Arnaud Charlet 2005-10-18 14:51:22 UTC
Geert is no longer working on this PR for the time being, so changing
assignment.
Comment 2 Arnaud Charlet 2007-04-30 11:16:26 UTC
Fixed in 4.3.0:

$ gcc -c test2.adb 
test2.adb:5:10: warning:  > NUmber Is GReater Than 1!

Arno