www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9189] New: (D1 only) ICE on simple valid code since dmd 1.074

reply d-bugmail puremagic.com writes:
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



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: -------
Dec 20 2012
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Dec 20 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9189


Don <clugdbug yahoo.com.au> changed:

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



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: -------
Dec 22 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9189




17:59:27 MSK ---

 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: -------
Dec 22 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9189


Walter Bright <bugzilla digitalmars.com> changed:

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



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: -------
Dec 22 2012