Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
September 19, 2012 [Issue 8696] New: Compiler reports incorrect dangling else with version attributes | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8696 Summary: Compiler reports incorrect dangling else with version attributes Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: alex@lycus.org --- Comment #0 from Alex Rønne Petersen <alex@lycus.org> 2012-09-19 21:16:22 CEST --- $ cat test.d version (Posix): version (linux) { } else version (OSX) { } else { } $ <> dmd -w -lib test.d test.d(9): Warning: else is dangling, add { } after condition at test.d(1) test.d(6): Warning: else is dangling, add { } after condition at test.d(1) I don't see any reason at all that this should be considered a dangling else case. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 19, 2012 [Issue 8696] Compiler reports incorrect dangling else with version attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | http://d.puremagic.com/issues/show_bug.cgi?id=8696 Iain Buclaw <ibuclaw@ubuntu.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@ubuntu.com --- Comment #1 from Iain Buclaw <ibuclaw@ubuntu.com> 2012-09-19 13:46:52 PDT --- https://github.com/D-Programming-Language/dmd/pull/1129 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 20, 2012 [Issue 8696] Compiler reports incorrect dangling else with version attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | http://d.puremagic.com/issues/show_bug.cgi?id=8696 Brad Roberts <braddr@puremagic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |braddr@puremagic.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 20, 2012 [Issue 8696] Compiler reports incorrect dangling else with version attributes | ||||
---|---|---|---|---|
| ||||
Posted in reply to Alex Rønne Petersen | http://d.puremagic.com/issues/show_bug.cgi?id=8696 kekeniro2@yahoo.co.jp changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thecybershadow@gmail.com --- Comment #3 from kekeniro2@yahoo.co.jp 2012-09-19 21:03:29 PDT --- *** Issue 7601 has been marked as a duplicate of this issue. *** -- 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