www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1566] New: Nested template issue

reply d-bugmail puremagic.com writes:
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 digitalmars.com
        ReportedBy: pop.atry 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;
}


-- 
Oct 10 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1566


smjg iname.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |smjg iname.com
           Keywords|                            |rejects-valid
         OS/Version|Linux                       |All





Please post the error messages when filing bugs.  And assign keywords as
appropriate.

DMD 1.023 Windows:

bz1566.d(10): found '!' when expecting ')'
bz1566.d(10): found ')' when expecting ';'


-- 
Nov 08 2007