Bug 1372 – Compiler accepts pragma(msg,)

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-07-25T04:06:00Z
Last change time
2014-02-16T15:26:00Z
Keywords
accepts-invalid
Assigned to
bugzilla
Creator
aziz.koeksal

Attachments

IDFilenameSummaryContent-TypeSize
244pragmaargs.patchrequire arguments after a commatext/plain824

Comments

Comment #0 by aziz.koeksal — 2007-07-25T04:06:15Z
pragma(msg,); // No error. Prints 4 blank lines as far as I could see.
Comment #1 by smjg — 2007-07-25T11:27:10Z
Under Windows, no extra blank lines are output, but the invalid code is accepted just the same.
Comment #2 by bugs-d — 2008-04-12T18:51:36Z
Created attachment 244 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]
Comment #3 by bugzilla — 2008-12-08T00:53:04Z
Fixed in DMD 1.037 and 2.021