www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10040] New: struct-related ICE

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10040

           Summary: struct-related ICE
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: oivind.loe gmail.com



Created an attachment (id=1212)
project reduced with dustmite

During compile of my project, I got the following error.

dmd: struct.c:735: virtual void StructDeclaration::semantic(Scope*): Assertion
`type->ty != Tstruct || ((TypeStruct *)type)->sym == this' failed.
Aborted (core dumped)

I have reduced the project with dustmite, and it now fails with more errors,
but the error above is still present.

To reproduce: extract and run "make clean && make" in the extracted directory.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 07 2013
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10040




I am running on 'master'.. The following commit:

commit 08faebacecae721246ad34421db266030cd54b25
Merge: b7b1fc6 bb8b47d
Author: Walter Bright <walter walterbright.com>
Date:   Mon May 6 00:39:32 2013 -0700



    Implement proper UFCS name look up

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 07 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10040


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
           Severity|major                       |regression


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 07 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10040


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice, pull, rejects-valid



https://github.com/D-Programming-Language/dmd/pull/2000

---- Reduced test case(test.d):
struct MsgProc1 { mixin MsgMixin; }
struct MsgProc2 { mixin MsgMixin; }

struct MsgHeader {}

template MsgMixin()
{
    mixin(mixinMembers!(MsgHeader.init));
}

string mixinMembers(T ...)()
{
    struct Op {}
    return null;
}

---- Command line:
dmd -o- test.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 09 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10040




Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/5db1848cc9e33663c41763f87b9a0951c95e5e6b
fix Issue 10040 - struct-related ICE

The second instantiation of `mixinMembers!(MsgHeader.init)` is incorrectly
judged as not identical with the first one, by the lack of
`StructLiteralExp::equals`.

https://github.com/D-Programming-Language/dmd/commit/526b57d803d153aa842ec8ba549c4dea8ff7c0aa


[REG2.063a] Issue 10040 - struct-related ICE

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 10 2013
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10040


Kenji Hara <k.hara.pg gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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