Thread overview
[Issue 9189] New: (D1 only) ICE on simple valid code since dmd 1.074
Dec 20, 2012
Denis Shelomovskij
Dec 20, 2012
Walter Bright
Dec 22, 2012
Don
Dec 22, 2012
Denis Shelomovskij
Dec 23, 2012
Walter Bright
December 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9189

           Summary: (D1 only) ICE on simple valid code since dmd 1.074
           Product: D
           Version: D1
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: ice
          Severity: regression
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: verylonglogin.reg@gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-12-20 11:22:16 MSK ---
This code used to compile but resultes in ICE since dmd 1.074:
---
struct S1 {
    enum E { x }

    E e;
    const S1 s1 = S1(E.x);

    void f() {
        if(*this == s1) { }
    }
}

struct S2 {
    S1 s = S1.s1;
}
---

dmd 1.075 compiler output:
---
Assertion failure: '0' on line 1081 in file 'glue.c'
---

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 20, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9189


Walter Bright <bugzilla@digitalmars.com> changed:

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


--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> 2012-12-20 00:39:52 PST ---
This works in the D1 head.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9189


Don <clugdbug@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |


--- Comment #2 from Don <clugdbug@yahoo.com.au> 2012-12-22 06:29:27 PST ---
I can reproduce on Linux64, using D1 (Haven't yet checked if it happens with Phobos1, but definitely happens with Tango).

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 22, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9189



--- Comment #3 from Denis Shelomovskij <verylonglogin.reg@gmail.com> 2012-12-22 17:59:27 MSK ---
(In reply to comment #2)
> I can reproduce on Linux64, using D1 (Haven't yet checked if it happens with Phobos1, but definitely happens with Tango).

Strange, it doesn't look like a platform-dependent bug. Please, specify exact
commit you are using to build dmd.
Also confirm that 118d3da3a9b35911afbf2eae98084f75c33802f3 doesn't work for you
as it works for me on Win32.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 23, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9189


Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |WORKSFORME


--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> 2012-12-22 18:13:38 PST ---
I added the test case into the D1 test suite, and ran the full test suite on all platforms. No errors.

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