1372 – Compiler accepts pragma(msg,)

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1372 - Compiler accepts pragma(msg,)
Summary: Compiler accepts pragma(msg,)
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 All
: P3 normal
Assignee: Walter Bright
URL:
Keywords: accepts-invalid
Depends on:
Blocks:
Reported: 2007年07月25日 04:06 UTC by Aziz Köksal
Modified: 2014年02月16日 15:26 UTC (History)
1 user (show)

See Also:


Attachments
require arguments after a comma (824 bytes, patch)
2008年04月12日 18:51 UTC, Unknown W. Brackets
Details | Diff
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Aziz Köksal 2007年07月25日 04:06:15 UTC
pragma(msg,); // No error. Prints 4 blank lines as far as I could see.
Comment 1 Stewart Gordon 2007年07月25日 11:27:10 UTC
Under Windows, no extra blank lines are output, but the invalid code is accepted just the same.
Comment 2 Unknown W. Brackets 2008年04月12日 18:51:36 UTC
Created attachment 244 [details] 
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 Walter Bright 2008年12月08日 00:53:04 UTC
Fixed in DMD 1.037 and 2.021


AltStyle によって変換されたページ (->オリジナル) /