Re: C++ PATCH for c++/85695, rejects-valid with constexpr if

2018-05-08 Thread Jason Merrill
OK for trunk and 8. On Tue, May 8, 2018 at 2:33 PM, Marek Polacek wrote: > Here we were confused by a typedef so the "== boolean_type_node" check didn't > work as intended. We can use TYPE_MAIN_VARIANT to see the real type. > > Bootstrapped/regtested on x86_64-linux, ok for

C++ PATCH for c++/85695, rejects-valid with constexpr if

2018-05-08 Thread Marek Polacek
Here we were confused by a typedef so the "== boolean_type_node" check didn't work as intended. We can use TYPE_MAIN_VARIANT to see the real type. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2018-05-08 Marek Polacek PR c++/85695 * semantics.c