www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1372] New: Compiler accepts pragma(msg,)

reply d-bugmail puremagic.com writes:
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.


-- 
Jul 25 2007
next sibling parent d-bugmail puremagic.com writes:
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





Under Windows, no extra blank lines are output, but the invalid code is
accepted just the same.


-- 
Jul 25 2007
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1372






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]


-- 
Apr 12 2008
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1372


bugzilla digitalmars.com changed:

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





Fixed in DMD 1.037 and 2.021


-- 
Dec 07 2008