www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21998] New: checkaction=context should support basic types

https://issues.dlang.org/show_bug.cgi?id=21998

          Issue ID: 21998
           Summary: checkaction=context should support basic types during
                    CTFE
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

Formatting for basic types doesn't work during CTFE because the implementation
calls into external functions which cannot be evaluated.

For example, assert(1 == 2) aborts with `sprintf cannot be evaluated at compile
time`.

--
Jun 06