Thread overview
[Issue 10040] New: struct-related ICE
May 07, 2013
Øivind
May 07, 2013
Øivind
May 07, 2013
Walter Bright
May 10, 2013
Kenji Hara
May 10, 2013
Kenji Hara
May 07, 2013
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


--- Comment #0 from Øivind <oivind.loe@gmail.com> 2013-05-07 13:57:02 PDT ---
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
http://d.puremagic.com/issues/show_bug.cgi?id=10040



--- Comment #1 from Øivind <oivind.loe@gmail.com> 2013-05-07 14:00:39 PDT ---
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

    Merge pull request #1930 from 9rnsr/new_ufcs

    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
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 10, 2013
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


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2013-05-09 18:47:24 PDT ---
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 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10040



--- Comment #3 from github-bugzilla@puremagic.com 2013-05-10 01:30:40 PDT ---
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 Merge pull request #2000 from 9rnsr/fix10040

[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
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: -------