www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7818] New: __traits(allMembers) issue?

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



{{{
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: -------
Apr 03 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7818




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




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





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




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


SomeDude <lovelydear mailmetrash.com> changed:

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



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





 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: -------
Apr 21 2012
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Apr 21 2012