[Issue 10190] fullyQualifiedName on enum template members doesn't work

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 28 02:38:05 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=10190



--- Comment #2 from Dicebot <m.strashun at gmail.com> 2013-05-28 02:38:03 PDT ---
Ok, there are two issues here.

First one is that identifier trait fails badly with temporaries, minimal
example:
----------------------------------------
template oops(alias T)
{
    enum oops = __traits(identifier, T); 
}

struct A {}

pragma(msg, oops!(A.init));

void main()
{
}
----------------------------------------

Second looks like some sort of data reusage compiler bug - once identifier
trait was called on a temporary, using it on normal symbols breaks too (yields
same rersult).

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


More information about the Digitalmars-d-bugs mailing list