D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7818 - __traits(allMembers) issue?
Summary: __traits(allMembers) issue?
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Windows
: P2 major
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-03 12:09 UTC by Manu
Modified: 2012-04-21 16:25 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Manu 2012-04-03 12:09:56 UTC
{{{
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 Kenji Hara 2012-04-03 17:51:49 UTC
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 Manu 2012-04-04 00:35:41 UTC
"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 Kenji Hara 2012-04-04 01:18:07 UTC
(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 Manu 2012-04-05 10:05:00 UTC
Are there ETA's for releases? A release schedule perhaps?
Comment 5 SomeDude 2012-04-21 09:58:38 UTC
This compiles and runs fine under 2.059 Win32
Comment 6 Manu 2012-04-21 10:12:19 UTC
(In reply to comment #5)
> This compiles and runs fine under 2.059 Win32

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