[Issue 3416] Non-compilable template instantiation in is(typeof()) fails compilation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 19 05:09:13 PDT 2009
http://d.puremagic.com/issues/show_bug.cgi?id=3416
--- Comment #4 from Max Samukha <samukha at voliacable.com> 2009-10-19 05:09:11 PDT ---
Interestingly, if 'foo' is instantiated in 'static assert', is incorrectly
evaluated to true.
template bar(T)
{
private void baz()
{
T a = null;
}
}
template foo(T)
{
enum foo = is(typeof(bar!T));
}
static assert(!foo!int);
----
Error: static assert (!true) is false
--
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