August 13, 2020
https://issues.dlang.org/show_bug.cgi?id=21159

          Issue ID: 21159
           Summary: DWARF: DW_AT_pure should be emitted for pure functions
           Product: D
           Version: D2
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody@puremagic.com
          Reporter: lucien.perregaux@gmail.com

This will enable the debugger to issue a warning if impure functions are invoked from the debugger.

--