www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19137] New: D_BoundsChecks / D_NoBoundsChecks does not

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

          Issue ID: 19137
           Summary: D_BoundsChecks / D_NoBoundsChecks does not support
                    -boundschecks=safeonly
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: pro.mathias.lang gmail.com

When a program is compiled with `-boundschecks=safeonly`, `D_NoBoundsChecks` is
*not* defined, but bounds check is turned off in non-safe code, which might
break some assumption, e.g. in ` trusted` code.

--
Aug 02 2018