Summary: inner template mixin not defined?!
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Ellery Newcomer <> 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,
            ) C;

the fireworks:

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

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to