Thread overview
[Issue 10401] New: ICE(ztc/symbol.c 1035) - inline Nullable struct with JSONValue
Jun 18, 2013
Mario Kroeplin
Oct 07, 2013
Walter Bright
June 18, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10401

           Summary: ICE(ztc/symbol.c 1035) - inline Nullable struct with
                    JSONValue
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: kroeplin.d@googlemail.com


--- Comment #0 from Mario Kroeplin <kroeplin.d@googlemail.com> 2013-06-18 04:57:10 PDT ---
With D 2.063 and D 2.063.2 the following code does no longer compile with switch '-inline':

import std.json;
import std.typecons;

struct S
{
    JSONValue value;
}

void f(Nullable!S s) { }

The error message is:
Internal error: ../ztc/symbol.c 1035

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10401


hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice
                 CC|                            |hsteoh@quickfur.ath.cx


--- Comment #1 from hsteoh@quickfur.ath.cx 2013-06-29 13:42:43 PDT ---
Confirmed on DMD git HEAD (5a97c27ed1081357e48a5658b71a357addfcfb62) on
Linux/amd64.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
June 29, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10401



--- Comment #2 from hsteoh@quickfur.ath.cx 2013-06-29 14:16:00 PDT ---
The ICE appears to be introduced by DMD commit 42e929a12c4df7a68e7bc721479a36697abce67b (fix for issue #3789).

However, due to changes in Phobos, the above version of DMD is unable to reproduce the same problem in Phobos git HEAD; the latest version of Phobos that this version of DMD is able to compile (and reproduce the problem) is 41098e3f49492fb1cd44137c4cac41083c5e34c1.

(tldr: to reproduce the bug, first checkout Phobos commit 41098e3, otherwise the bug won't show up in the referenced DMD commit above, since newer versions of Phobos use syntax only supported by later versions of DMD.)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
October 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10401


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|                            |WORKSFORME


--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2013-10-07 00:15:44 PDT ---
Compiles without error with 2.064 with and without -inline.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------