www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 6650] New: ICE(glue.c): type inference of invalid template instantiation from is(typeof())

reply d-bugmail puremagic.com writes:
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: nobody puremagic.com
        ReportedBy: clugdbug yahoo.com.au



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: -------
Sep 12 2011
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=6650


Don <clugdbug yahoo.com.au> changed:

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



This was fixed in DMD2.056, commit 8ed5854.
Test case is in the test suite.

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