[Issue 6650] New: ICE(glue.c): type inference of invalid template instantiation from is(typeof())
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Sep 12 05:54:18 PDT 2011
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 at puremagic.com
ReportedBy: clugdbug at yahoo.com.au
--- Comment #0 from Don <clugdbug at 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: -------
More information about the Digitalmars-d-bugs
mailing list