[Issue 1566] New: Nested template issue

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 10 04:05:57 PDT 2007


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

           Summary: Nested template issue
           Product: D
           Version: 2.006
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: pop.atry at gmail.com


template T(int n) {
  template T(char c) {
    alias long T;
  }
}

int main() {
  alias T!(3) T3;
  static assert(is(long == T3!('b'))); // OK
  static assert(is(long == T!(3)!('b'))); // error
  return 0;
}


-- 



More information about the Digitalmars-d-bugs mailing list