Bug 7818 – __traits(allMembers) issue?

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2012-04-03T12:09:00Z
Last change time
2012-04-21T16:25:27Z
Assigned to
nobody
Creator
turkeyman

Comments

Comment #0 by turkeyman — 2012-04-03T12:09:56Z
{{{ 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 }}}
Comment #1 by k.hara.pg — 2012-04-03T17:51:49Z
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.)
Comment #2 by turkeyman — 2012-04-04T00:35:41Z
"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?
Comment #3 by k.hara.pg — 2012-04-04T01:18:07Z
(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.
Comment #4 by turkeyman — 2012-04-05T10:05:00Z
Are there ETA's for releases? A release schedule perhaps?
Comment #5 by lovelydear — 2012-04-21T09:58:38Z
This compiles and runs fine under 2.059 Win32
Comment #6 by turkeyman — 2012-04-21T10:12:19Z
(In reply to comment #5) > This compiles and runs fine under 2.059 Win32 Yes, that conclusion was already made in the prev posts.