Bug 5352 – Error: static assert (!true) is-expression with invalid class template instantiation

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2010-12-14T12:24:00Z
Last change time
2015-06-09T05:10:39Z
Assigned to
nobody
Creator
ibuclaw

Comments

Comment #0 by ibuclaw — 2010-12-14T12:24:58Z
I'm pretty certain this static assert should pass, as is(furble!(int)) should evaluate to false because it can't be instantiated. Note, changing 'class' for 'struct' and it passes. class furble(T) { this(){ gurgle; } } static assert(! is(furble!(int)) );
Comment #1 by clugdbug — 2012-02-24T00:38:36Z
Happens with structs as well, and it's a duplicate *** This issue has been marked as a duplicate of issue 965 ***