[Issue 9545] New: ICE with member template instantiation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 19 20:18:49 PST 2013


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

           Summary: ICE with member template instantiation
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-02-19 20:18:48 PST ---
struct S1 { template T(X) { alias T = X; } }
void main()
{
    auto x1 = S1.init.T!int; // ICE
}

Instead, compiler should report "int is not an expression" error.

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


More information about the Digitalmars-d-bugs mailing list