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

           Summary: ICE(glue.c): type inference of invalid template
                    instantiation from is(typeof())
           Product: D
           Version: D1 & D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: clugd...@yahoo.com.au


--- Comment #0 from Don <clugd...@yahoo.com.au> 2011-09-12 05:54:01 PDT ---
This is a bug with the gagging system.

auto quz(X)(X y)
{
    X q = "abc";
    return y;
}

static assert(!is(typeof(quz!int(6))));

Two additional tests:
// It should also be false the second time;
static assert(!is(typeof(quz!int(18))));
// This should print error messages.
int bolog = quz!int(27);

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

Reply via email to