February 27, 2012 [Issue 7601] New: Spurious "dangling else" warning with "version(X):" | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=7601 Summary: Spurious "dangling else" warning with "version(X):" Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic, rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: thecybershadow@gmail.com --- Comment #0 from Vladimir Panteleev <thecybershadow@gmail.com> 2012-02-27 12:07:40 PST --- ----------------- 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) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 20, 2012 [Issue 7601] Spurious "dangling else" warning with "version(X):" | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | http://d.puremagic.com/issues/show_bug.cgi?id=7601 kekeniro2@yahoo.co.jp changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |kekeniro2@yahoo.co.jp Resolution| |DUPLICATE --- Comment #1 from kekeniro2@yahoo.co.jp 2012-09-19 21:03:27 PDT --- *** This issue has been marked as a duplicate of issue 8696 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation