www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1340] New: ICE on invalid use of template member declared in a class

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1340

           Summary: ICE on invalid use of template member declared in a
                    class
           Product: D
           Version: 1.018
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: dvdfrdmn users.sf.net


Sorry if this is a duplicate...

----
class foo {
    template temp( t ) {
        t boo( t a ) {
            return a;
        }
    }
}

void main() {
    auto a = foo.temp.boo();
}
----


-- 
Jul 13 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1340


clugdbug yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE





Although this was much older than issue 2203, the later one has discussion and
a patch.

*** This bug has been marked as a duplicate of 2203 ***


-- 
Apr 18 2009