[Issue 6475] template identifier is not a member of alias
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Thu Aug 11 20:13:39 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=6475
--- Comment #1 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2011-08-11 20:13:37 PDT ---
a similar issue:
struct Sequenced(){
    struct Inner(){
        mixin template NodeMixin(){
            size_t i;
        }
    }
}
struct IndexedBy(L...)
{
    alias L List;
}
struct MNode(ThisContainer, IndexedBy, Signals, Value){
    alias Sequenced!().Inner!() ZZ; // ok
    alias Sequenced!() Y0;
    alias Y0.Inner!() Z0; // oh no!
}
class MIC(Value, Args...){
    alias MNode!(typeof(this), Args[0],int,Value) ThisNode;
}
void main(){
    alias MIC!(int,
            IndexedBy!(Sequenced!(),
                ),
            ) C;
}
produces:
error12.d(25): Error: alias
error12.MNode!(MIC,IndexedBy!(Sequenced!()),int,int).MNode.Y0 template
identifier Inner is not a member of alias Y0
error12.d(25): Error: alias
error12.MNode!(MIC,IndexedBy!(Sequenced!()),int,int).MNode.Y0 template
identifier Inner is not a member of alias Y0
error12.d(26): Error: no property 'Inner!()' for type 'Sequenced!()'
error12.d(26): Error: alias
error12.MNode!(MIC,IndexedBy!(Sequenced!()),int,int).MNode.Z0 cannot alias an
expression __error
error12.d(30): Error: template instance
error12.MNode!(MIC,IndexedBy!(Sequenced!()),int,int) error instantiating
error12.d(34):        instantiated from here:
MIC!(int,IndexedBy!(Sequenced!()))
-- 
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