[Issue 11946] "need 'this' to access member" when passing field to template parameter
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jan 20 05:50:56 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11946
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> 2014-01-20 15:50:53 EET ---
> OK, I reopen issue 7805 as an enhancement request.
Unless the enhancement is making the error message better, it is still a
regression and not an enhancement, is it not?
>From my observations of related errors, I think there seems to be some
conflation between aliases to declarations (without context pointers) and
aliases to actual variables (which do have context pointers). For example,
S.field and s.field. These bug reports and those where the compiler complains
that "this for X should be type Y not type Z" indicates that in a lot of cases,
the compiler attempts to pass the context pointer to blocks where it makes no
sense to. IMO, all "this for X should be type Y not type Z" errors are
confusing and useless, and need to be eliminated.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list