[Bug 218] New: ICE: internal compiler error: in make_ssa_name_fn, at tree-ssanames.c:151

via D.gnu d.gnu at puremagic.com
Mon Apr 4 02:45:54 PDT 2016


http://bugzilla.gdcproject.org/show_bug.cgi?id=218

            Bug ID: 218
           Summary: ICE: internal compiler error: in make_ssa_name_fn, at
                    tree-ssanames.c:151
           Product: GDC
           Version: development
          Hardware: x86
                OS: MinGW
            Status: NEW
          Severity: major
          Priority: Normal
         Component: gdc
          Assignee: ibuclaw at gdcproject.org
          Reporter: sebastien.alaiwan at gmail.com

The following code crashes the optimizer:

struct S2
{
  this(int* pdata_)
  {
    pdata = pdata_;
  }

  void opIndexAssign(int, size_t) { }
  int* pdata;
};

struct S1
{
  S2 getS2()
  {
    return S2(data.ptr);
  }

  int[] data;
  int[] tab2;
};

S1 f()
{
  S1 r;

  for(int i = 0; i < 1; ++i)
    r.getS2()[0] = 0;

  return r;
}

S1 var;

static this()
{
  var = f();
}

To reproduce:

$ i686-vendor-mingw32-gdc -c -O3 crash_ssa/yo.d
crash_ssa/yo.d: In function '_staticCtor1':
crash_ssa/yo.d:37:1: internal compiler error: in make_ssa_name_fn, at
tree-ssanames.c:151
 static this()
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20160404/4b2b9826/attachment.html>


More information about the D.gnu mailing list