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

          Issue ID: 20748
           Summary: Deprecation for assert using shared type and
                    checkaction=context
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: druntime
          Assignee: [email protected]
          Reporter: [email protected]

The following code issues a deprecation when compiled with
-checkaction=context:

=======================================

void main()
{
    shared ulong a = 11;
    assert(a == 11);
}

=======================================

dmd -checkaction=context test.d

druntime\import\core\internal\dassert.d(86): Deprecation: argument v for format
specification "%u" must be int, not shared(const(ulong))


=======================================

miniFormat did not consider shared types but this was masked by the previous
rewriting of _d_assert_fail

--

Reply via email to