[Issue 11946] "need 'this' to access member" when passing field to template parameter

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Jul 6 22:46:20 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=11946

--- Comment #40 from Walter Bright <bugzilla at digitalmars.com> ---
(In reply to Jacob Carlborg from comment #39)
> Here "x" is private and I'm accessing the tuple in "f". The error I get is "
> Error: struct bar.S member x is not accessible". This worked fine in DMD
> 2.064.2.

Yes, it's not accessible because it is marked private, and "f" does not have
access to private members.

It also has nothing to do with Issue 11946, and should be filed separately if
you feel it needs to be addressed further.

--


More information about the Digitalmars-d-bugs mailing list