[Issue 14308] New: Compiling druntime with -release breaks range exceptions

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Thu Mar 19 03:00:06 PDT 2015


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

          Issue ID: 14308
           Summary: Compiling druntime with -release breaks range
                    exceptions
           Product: D
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: temtaime at gmail.com

Hi !
When i compile druntime with -release flag and then builds an app using it,
following code crashes:

ubyte[3] aa;
int n = 4;
aa[n] = 5;

If i compile it without -release, then all is OK.
I don't know how this flag affects range exceptions in applications.

Also i don't know is it a bug or as designed. But i think that druntime with
-release flag should work.

--


More information about the Digitalmars-d-bugs mailing list