Bug 6700 – Regression(2.053) using $ inside a slice of a tuple

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-09-20T06:43:00Z
Last change time
2011-10-24T13:38:07Z
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-09-20T06:43:39Z
From the test suite, fail_compilation/fail135.d This is a test which has been passing for a long time, but erroneously failing because a printf was missing. The regression is D2-only, it passes on D1. BTW this reduced test case is also a reduced test case for bug 751, which is what fail135 is testing (it was a segfault). Note the parentheses around the tuple. --------------------- template TypeTuple( TList... ) { alias TList TypeTuple; } template blah(TList ...) { const int blah = 2; } TypeTuple!(int, long) TT; static assert(blah!( (TT[1..$]) )==2);
Comment #1 by clugdbug — 2011-10-17T23:27:04Z
This probably has the same root cause as bug 6235.
Comment #2 by clugdbug — 2011-10-24T00:25:04Z
Comment #3 by bugzilla — 2011-10-24T13:38:07Z