www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 5352] New: Error: static assert (!true) is-expression with invalid class template instantiation

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5352

           Summary: Error: static assert (!true) is-expression with
                    invalid class template instantiation
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ibuclaw ubuntu.com



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)) );

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Dec 14 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=5352


Don <clugdbug yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |clugdbug yahoo.com.au
         Resolution|                            |DUPLICATE



Happens with structs as well, and it's a duplicate

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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Feb 24 2012