[Issue 3744] __traits getMember error in checking of second argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 27 02:20:06 PST 2010


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



--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-01-27 02:20:05 PST ---
Just had a look at your test code.
The problem lies here:

    foreach(string m; a){
        __traits(getMember, Check, m)
    }
m is not a compile-time constant. Of course it _should_ be, but it's not.

One thing you could try in traits.c is to replace:
e = e->optimize(WANTvalue);
with  e = e->interpret(NULL);
and that'll probably get it working.

But the real problem is in tuple foreach: the iteration variable should be a
compile-time constant.

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