[Issue 12287] infinite loop on std.traits.moduleName on templated struct member

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 2 13:20:32 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12287


Vladimir Panteleev <thecybershadow at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow at gmail.com


--- Comment #1 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-03-02 23:20:31 EET ---
It looks like the underlying problem is that the parent of a template instance
is the template instance itself.

Reduced:

struct X(T) { }

alias Xi = X!int;

static assert(!__traits(isSame, Xi, __traits(parent, Xi)));

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


More information about the Digitalmars-d-bugs mailing list