[Issue 2953] tuple.length rejected as a tuple parameter in a static foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 11 22:40:47 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2953
--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-08-11 22:40:45 PDT ---
Reduced form of the test case in comment 1:
---------
template Sequenced() {}
struct IndexedBy(L...) {
alias L List;
}
struct MIC(F){
int[F.List.length] w;
}
alias MIC!( IndexedBy!(Sequenced!()) ) C;
----------
test3.d(14): Error: identifier 'length' of 'F.List.length' is not defined
test3.d(17): Error: template instance test3.MIC!(IndexedBy!(__T9SequencedZ))
err
or instantiating
Looks like a failure to resolve aliases, for a template which is a member of a
tuple.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list