[dmd-internals] [D-Programming-Language/dmd] 5d3de8: fix Issue 8429 - [2.060 beta] 'version' rejected i...
GitHub
noreply at github.com
Sun Jul 29 13:15:06 PDT 2012
Branch: refs/heads/master
Home: https://github.com/D-Programming-Language/dmd
Commit: 5d3de87ebd8ead3ccf96647f25c5207ba1558105
https://github.com/D-Programming-Language/dmd/commit/5d3de87ebd8ead3ccf96647f25c5207ba1558105
Author: k-hara <k.hara.pg at gmail.com>
Date: 2012-07-28 (Sat, 28 Jul 2012)
Changed paths:
M src/attrib.c
M src/attrib.h
M test/runnable/test42.d
Log Message:
-----------
fix Issue 8429 - [2.060 beta] 'version' rejected inside 'static if's
This is a regression of fixing bug 7911.
Introduced commit: e558866cdd8c26daf90942ee6dd89e814347911b
StaticIfDeclaration::setScope speculatively distributes the scope to members, and ConditionalDeclaration::setScope evaluate its condition.
So, the root cause is too early evaluation of the condition of version block which in static if.
Commit: e8fe11c20249cb9e42538be88c99b74ede4d12e3
https://github.com/D-Programming-Language/dmd/commit/e8fe11c20249cb9e42538be88c99b74ede4d12e3
Author: Walter Bright <walter at walterbright.com>
Date: 2012-07-29 (Sun, 29 Jul 2012)
Changed paths:
M src/attrib.c
M src/attrib.h
M test/runnable/test42.d
Log Message:
-----------
Merge pull request #1070 from 9rnsr/fix8429
Issue 8429 - [2.060 beta] 'version' rejected inside 'static if's
Compare: https://github.com/D-Programming-Language/dmd/compare/5a9f538ca4b5...e8fe11c20249
More information about the dmd-internals
mailing list