[Bug 151] ICE in gimplify_expr, at gimplify.c:8538

via D.gnu d.gnu at puremagic.com
Thu Aug 14 12:58:18 PDT 2014


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

art.08.09 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |art.08.09 at gmail.com

--- Comment #2 from art.08.09 at gmail.com ---
(In reply to Johannes Pfau from comment #1)
> So where exactly is the bug?

Every ICE is always a compiler bug. It can be harmless (ie just a wrong/missing
error message), but it can also be a symptom of a real problem.

> The .init symbol is readonly so the only issue I see here is that the
> frontend allows this code to compile. But this is a bug for issues.dlang.org
> then.

      auto p = &S.init.i;
      *p = 42;

is actually accepted. And optimized away completely at >O0. :) While that is a
frontend and language problem, this bug is just about the ICE caused by the
original version.

-- 
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/20140814/c7eddfd3/attachment.html>


More information about the D.gnu mailing list