D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6700 - Regression(2.053) using $ inside a slice of a tuple
Summary: Regression(2.053) using $ inside a slice of a tuple
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Windows
: P2 regression
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-20 06:43 UTC by Don
Modified: 2011-10-24 13:38 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2011-09-20 06:43:39 UTC
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 Don 2011-10-17 23:27:04 UTC
This probably has the same root cause as bug 6235.