[Issue 15094] [REG2.063] __traits(getMember) fails when the source is a struct/class field
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Oct 20 18:25:45 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15094
Kenji Hara <k.hara.pg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
(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.
--
More information about the Digitalmars-d-bugs
mailing list