Bug 6650 – ICE(glue.c): type inference of invalid template instantiation from is(typeof())

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-09-12T05:54:00Z
Last change time
2015-06-09T05:11:39Z
Keywords
ice
Assigned to
nobody
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2011-09-12T05:54:01Z
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);
Comment #1 by clugdbug — 2012-02-08T06:50:35Z
This was fixed in DMD2.056, commit 8ed5854. Test case is in the test suite.