[Issue 2167] static assert hides template errors
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 30 06:49:54 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2167
------- Comment #3 from 2korden at gmail.com 2008-06-30 08:49 -------
The following one fails to compile:
class Templ(T) { this(){ unknown_identifier; } }
static assert(true == is(Templ!(int)));
with the following reason:
Error: undefined identifier unknown_identifier
And so does this:
static assert(true == __traits(compiles, Templ!(int)));
IMO, incorrect code in __traits(compiles) should not lead to compilation
errors.
--
More information about the Digitalmars-d-bugs
mailing list