www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14308] New: Compiling druntime with -release breaks range

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 puremagic.com
          Reporter: temtaime 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.

--
Mar 19 2015