D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 5352 - Error: static assert (!true) is-expression with invalid class template instantiation
Summary: Error: static assert (!true) is-expression with invalid class template instan...
Status: RESOLVED DUPLICATE of issue 965
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-14 12:24 UTC by Iain Buclaw
Modified: 2015-06-09 05:10 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Iain Buclaw 2010-12-14 12:24:58 UTC
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 Don 2012-02-24 00:38:36 UTC
Happens with structs as well, and it's a duplicate

*** This issue has been marked as a duplicate of issue 965 ***