[Issue 15094] [REG2.063] __traits(getMember) fails when the source is a struct/class field

2015-10-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15094

Kenji Hara  changed:

   What|Removed |Added

   Keywords||rejects-valid

--- Comment #2 from Kenji Hara  ---
(In reply to Vladimir Panteleev from comment #1)
> This appears to be a regression.
> 
> Introduced in https://github.com/D-Programming-Language/dmd/pull/1687

Not correct. With 2.062, compiling example code with `dmd -c` will make:

test.d(16): Error: need 'this' to access member foo

PR 1687 had moved many "need this" errors in glue layer to front-end, but such
the field access is not yet supported. I think it's a reject-valid bug.

--


[Issue 15094] [REG2.063] __traits(getMember) fails when the source is a struct/class field

2015-10-15 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15094

Vladimir Panteleev  changed:

   What|Removed |Added

 CC||thecybersha...@gmail.com
Summary|__traits(getMember) fails   |[REG2.063]
   |when the source is a|__traits(getMember) fails
   |struct/class field  |when the source is a
   ||struct/class field

--- Comment #1 from Vladimir Panteleev  ---
This appears to be a regression.

Introduced in https://github.com/D-Programming-Language/dmd/pull/1687

--