www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11633] New: static assert(false) ignored

https://d.puremagic.com/issues/show_bug.cgi?id=11633

           Summary: static assert(false) ignored
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: luis luismarques.eu


--- Comment #0 from Luís Marques <luis luismarques.eu> 2013-11-28 17:41:24 WET
---
This compiles without error, ignoring the static assert:

    class A(T)
    {
        static assert(false);
        B!T foo;
    }

    class B(T) : T { }

    void main()
    {
        static class C : A!C { }
    }

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Nov 28 2013