Re: [PATCH] Fix PR c++/70822 (bogus error with parenthesized SCOPE_REF)

2016-05-19 Thread Jason Merrill
OK. Jason

Re: [PATCH] Fix PR c++/70822 (bogus error with parenthesized SCOPE_REF)

2016-05-09 Thread Patrick Palka
On Fri, Apr 29, 2016 at 11:55 AM, Patrick Palka wrote: > The problem here is that some code paths are not prepared to handle a > non-dependent PAREN_EXPR, which my fix for PR c++/70106 introduced. In > particular lvalue_kind() returns clk_none for a PAREN_EXPR which makes > build_x_unary_op() emi

[PATCH] Fix PR c++/70822 (bogus error with parenthesized SCOPE_REF)

2016-04-29 Thread Patrick Palka
The problem here is that some code paths are not prepared to handle a non-dependent PAREN_EXPR, which my fix for PR c++/70106 introduced. In particular lvalue_kind() returns clk_none for a PAREN_EXPR which makes build_x_unary_op() emit a bogus error for an expression like &(A::b). (If the PAREN_EX