← Back to index
|
Original Bugzilla link
Bug 7601 – Spurious "dangling else" warning with "version(X):"
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-02-27T12:07:00Z
Last change time
2012-09-19T21:03:27Z
Keywords
diagnostic, rejects-valid
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2012-02-27T12:07:40Z
----------------- version(D_Version2): version(DigitalMars) const DEFAULT_COMPILER = "dmd"; else const DEFAULT_COMPILER = "gdmd"; ----------------- Above code gives the following warning (compile with -w): test.d(5): Warning: else is dangling, add { } after condition at test.d(1)
Comment #1
by kekeniro2 — 2012-09-19T21:03:27Z
*** This issue has been marked as a duplicate of issue 8696 ***