http://d.puremagic.com/issues/show_bug.cgi?id=6476

           Summary: inner template mixin not defined?!
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: ellery-newco...@utulsa.edu


--- Comment #0 from Ellery Newcomer <ellery-newco...@utulsa.edu> 2011-08-11 
20:21:51 PDT ---
the code:

struct Sequenced(){
    struct Inner(){
        static exposeType(){
            Inner i;
            return i;
        }
        mixin template NodeMixin(){
            size_t i;
        }
    }
}

struct IndexedBy(L...)
{
    alias L List;
}

struct MNode(ThisContainer, IndexedBy, Signals, Value){
    mixin Sequenced!().Inner!().NodeMixin!() ZZ; // ok
    alias Sequenced!() Y0;
    alias typeof(Y0.Inner!().exposeType()) Z0;
    pragma(msg, Z0);
    mixin Z0.NodeMixin!() Z2;
}

class MIC(Value, Args...){
    alias MNode!(typeof(this), Args[0],int,Value) ThisNode;
}

void main(){
    alias MIC!(int,
            IndexedBy!(Sequenced!(),
                ),
            ) C;
}


the fireworks:

error13.d(30): Error: mixin
error13.MNode!(MIC,IndexedBy!(Sequenced!()),int,int).MNode.NodeMixin!() is not
defined
error13.d(34): Error: template instance
error13.MNode!(MIC,IndexedBy!(Sequenced!()),int,int) error instantiating
error13.d(38):        instantiated from here:
MIC!(int,IndexedBy!(Sequenced!()))

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to