www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14317] New: [REG2.066] ICE (cgcod.c 1767) when compiing with


          Issue ID: 14317
           Summary: [REG2.066] ICE (cgcod.c 1767) when compiing with
                    -profile -O -inline
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P1
         Component: DMD
          Assignee: nobody puremagic.com
          Reporter: jiki red.email.ne.jp

This worked in DMD2.065.

dmd.exe -profile -O -inline test.d

Internal error: backend\cgcod.c 1767

struct Range {
    private string s;
    char charAt(int unused1) { return s[0]; }

bool count(ref Range r, out int unused2)
    int unused3;
    char c = r.charAt(0);
    return true;

Mar 21 2015