Thread overview
[Issue 7818] New: __traits(allMembers) issue?
Apr 03, 2012
Manu
Apr 04, 2012
Kenji Hara
Apr 04, 2012
Manu
Apr 04, 2012
Kenji Hara
Apr 05, 2012
Manu
Apr 21, 2012
SomeDude
Apr 21, 2012
Manu
Apr 21, 2012
Kenji Hara
April 03, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7818

           Summary: __traits(allMembers) issue?
           Product: D
           Version: D2
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: turkeyman@gmail.com


--- Comment #0 from Manu <turkeyman@gmail.com> 2012-04-03 12:09:56 PDT ---
{{{
module testmodule;

string GetPublicMembers()
{
    foreach(m; __traits(allMembers, testmodule))
    {
        //...
    }

    return null;
}

mixin template RegisterModule()
{
    mixin(GetPublicMembers());
}

mixin RegisterModule;
}}}

Error:
{{{
C:\Users\venix\projects\fusion\fail>c:\dmd2\windows\bin\dmd.exe issue328.d
Assertion failure: 'members' on line 1052 in file 'dsymbol.c'

abnormal program termination
}}}

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



--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-04-03 17:51:49 PDT ---
In 2.059head (c2824d43e470d), the code compiles without any assertions.
What version do you use? (It seems to me that is an issue recently fixed.)

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



--- Comment #2 from Manu <turkeyman@gmail.com> 2012-04-04 00:35:41 PDT ---
"DMD32 D Compiler v2.058"

...only one version difference. It would seem so.
There's no binaries for 059 yet. How often do they usually get built?

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



--- Comment #3 from Kenji Hara <k.hara.pg@gmail.com> 2012-04-04 01:18:07 PDT ---
(In reply to comment #2)
> "DMD32 D Compiler v2.058"
> ...only one version difference. It would seem so.

I think this issue is much similar with bug 7160, but it was already fixed in
2.058 release.
http://dlang.org/changelog.html#new2_058

Hmm....strange.

> There's no binaries for 059 yet. How often do they usually get built?

Oh, sorry. I am one of the dmd contributor, so I usually get build every day.

Maybe, this issue is already fixed in 2.059, so please wait the release in a while.

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



--- Comment #4 from Manu <turkeyman@gmail.com> 2012-04-05 10:05:00 PDT ---
Are there ETA's for releases? A release schedule perhaps?

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


SomeDude <lovelydear@mailmetrash.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lovelydear@mailmetrash.com


--- Comment #5 from SomeDude <lovelydear@mailmetrash.com> 2012-04-21 09:58:38 PDT ---
This compiles and runs fine under 2.059 Win32

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



--- Comment #6 from Manu <turkeyman@gmail.com> 2012-04-21 10:12:19 PDT ---
(In reply to comment #5)
> This compiles and runs fine under 2.059 Win32

Yes, that conclusion was already made in the prev posts.

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


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