← Back to index
|
Original Bugzilla link
Bug 10537 – Forward reference error on 'yield' toy example.
Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-07-04T00:48:00Z
Last change time
2013-07-04T21:31:19Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
timon.gehr
Comments
Comment #0
by timon.gehr — 2013-07-04T00:48:36Z
Compiled and ran with DMD 2.060, does not compile anymore with DMD 2.063:
http://dpaste.dzfl.pl/baa538af
Comment #1
by k.hara.pg — 2013-07-04T17:55:07Z
Reduced test case: struct Iota10537 { int s,e,i; mixin Yield10537!q{ ; }; } auto skipStrings10537(T)(T source) { return ""; } mixin template Yield10537(dstring code) { alias X = typeof({ enum x = rewriteCode10537(code); }()); } dstring rewriteCode10537(dstring code) { skipStrings10537(code); // IFTI causes forward reference return ""; }
Comment #2
by k.hara.pg — 2013-07-04T18:14:31Z
https://github.com/D-Programming-Language/dmd/pull/2298
Comment #3
by github-bugzilla — 2013-07-04T21:29:00Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/b275b48bad38267183e71050c5375066745e0e33
fix Issue 10537 - Forward reference error on 'yield' toy example.
https://github.com/D-Programming-Language/dmd/commit/fcf2ed507123c54f6c3e99ce281ae61fba55a340
Merge pull request #2298 from 9rnsr/fix10537 [REG2.063] Issue 10537 - Forward reference error on 'yield' toy example.