Bug 2693 – Instantiations of templates containing __traits fail in is()
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-02-27T08:46:00Z
Last change time
2015-06-09T01:21:08Z
Keywords
rejects-valid
Assigned to
nobody
Creator
samukha
Comments
Comment #0 by samukha — 2009-02-27T08:46:28Z
template Foo()
{
static if (!__traits(compiles, fail))
{
alias int Foo;
}
}
//alias Foo!() a; // uncomment to compile
static assert(is(Foo!() == int)); // fails
This is not a 'static assert' problem