Summary: Sudden-death static assert is not very useful
           Product: D
           Version: 1.042
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: patch
          Severity: enhancement
          Priority: P2
         Component: DMD

Sudden-death static asserts were introduced due to comment #2 of bugzilla 77:

However, they make static assert rather useless, since it gives you absolutely
no context. To make it useful again,

In staticassert.c, line 68 (in DMD2.027):
        error("is false");
        if (!global.gag)
change this to:
        error("(%s) is false", exp->toChars());

(ie, remove the global.gag test).


Reply via email to