Thread overview
[Issue 1372] New: Compiler accepts pragma(msg,)
Jul 25, 2007
d-bugmail
Jul 25, 2007
d-bugmail
Apr 12, 2008
d-bugmail
Dec 08, 2008
d-bugmail
July 25, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1372

           Summary: Compiler accepts pragma(msg,)
           Product: D
           Version: 1.019
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: aziz.kerim@gmail.com


pragma(msg,); // No error. Prints 4 blank lines as far as I could see.


-- 

July 25, 2007
http://d.puremagic.com/issues/show_bug.cgi?id=1372


smjg@iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg@iname.com
           Keywords|                            |accepts-invalid
         OS/Version|Linux                       |All




------- Comment #1 from smjg@iname.com  2007-07-25 11:27 -------
Under Windows, no extra blank lines are output, but the invalid code is accepted just the same.


-- 

April 12, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1372





------- Comment #2 from unknown@simplemachines.org  2008-04-12 18:51 -------
Created an attachment (id=244)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=244&action=view)
require arguments after a comma

This patch makes pragma(IDENT,) an error in any case, which follows the
published spec and logic.

With this change, the following error will be reported if no arguments follow the comma:

arguments expected after comma inside msg pragma

-[Unknown]


-- 

December 08, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1372


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #3 from bugzilla@digitalmars.com  2008-12-08 00:53 -------
Fixed in DMD 1.037 and 2.021


--