This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for c++/91678 - wrong error with decltype and location wrapper


On 9/16/19 1:12 PM, Marek Polacek wrote:
On Sun, Sep 15, 2019 at 10:18:29AM -0400, Jason Merrill wrote:
On 9/5/19 9:24 PM, Marek Polacek wrote:
They use
non_lvalue_loc, but that won't create a NON_LVALUE_EXPR wrapper around a location
wrapper.

That seems like the bug. maybe_lvalue_p should be true for
VIEW_CONVERT_EXPR.

That makes sense but it breaks in tsubst_* which doesn't expect a
NON_LVALUE_EXPR wrapped around a location wrapper.

Hmm, why would we get that in a template when we don't get NON_LVALUE_EXPR wrapped around other lvalue nodes?

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]