Bug 12378 – Compiler accepts any syntactically-valid code inside double-nested map predicate

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2014-03-15T22:37:00Z
Last change time
2014-03-23T17:12:08Z
Keywords
accepts-invalid, pull
Assigned to
nobody
Creator
dlang-bugzilla

Comments

Comment #0 by dlang-bugzilla — 2014-03-15T22:37:32Z
///////// test.d ///////// import std.algorithm; import std.range; void main() { iota(1).map!(y0 => iota(2).map!(x0 => ANYTHING-GOES ) ); } ////////////////////////// This will compile but will not link.
Comment #1 by k.hara.pg — 2014-03-16T19:15:47Z
Comment #2 by github-bugzilla — 2014-03-23T03:41:20Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/b8380bc668d62040c2f91c98ccd694ace46fd2aa fix Issue 12378 - Compiler accepts any syntactically-valid code inside double-nested map predicate https://github.com/D-Programming-Language/dmd/commit/4d3bbfb0639cc4f28272d816f795c0f12cd4f2e5 Merge pull request #3383 from 9rnsr/fix12378 Issue 12378 - Compiler accepts any syntactically-valid code inside double-nested map predicate