[Issue 7160] New: Regression(2.057): ICE(dsymbol.c:1052) ICE using __traits(derivedMembers)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Dec 23 16:12:46 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7160

           Summary: Regression(2.057): ICE(dsymbol.c:1052) ICE using
                    __traits(derivedMembers)
           Product: D
           Version: D2
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: robert at octarineparrot.com


--- Comment #0 from Robert Clipsham <robert at octarineparrot.com> 2011-12-24 00:12:43 GMT ---
The following test case:
----
class HomeController {
    static if (false) {
        mixin(q{ int a; });
    }
    void foo() {
        foreach (m; __traits(derivedMembers, HomeController)) {
        }
    }
}
----
Gives the error:
----
dmd: dsymbol.c:1052: static int ScopeDsymbol::foreach(Dsymbols*, int (*)(void*,
size_t, Dsymbol*), void*, size_t*): Assertion `members' failed.
----
On ubuntu 32 and a similar error:
----
Assertion failed: (members), function foreach, file dsymbol.c, line 1052.
----
On OS X 32 and 64.

This worked as expected in dmd 2.056.

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


More information about the Digitalmars-d-bugs mailing list