[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 18:19:12 PST 2014


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



--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2014-03-02 18:19:10 PST ---
(In reply to comment #2)
> I think this only applies to eponymous templates. The parent of the member is
> the struct declaration, the parent of which is the template instance. But when
> referring to the template instance of an eponymous template, it is "converted"
> to the symbol it wraps (the struct declaration), so it never exits the cycle.

No, this is a Phobos bug. I think it's not good to add a special case in
__traits(parent) for eponymous templates.

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