On 11/10/2017 04:45 PM, David Malcolm wrote:
Without this, then lvalue_p returns false for decls, and hence e.g. uses of them for references fail.Stripping location wrappers in lvalue_kind restores the correct behavior of lvalue_p etc. gcc/cp/ChangeLog: * tree.c (lvalue_kind): Strip any location wrapper.
Rather, lvalue_kind should learn to handle VIEW_CONVERT_EXPR. Jason