C++ PATCH for c++/65398 (valid constexpr rejected once again)

2015-03-30 Thread Marek Polacek
Turned out that my earlier fix for this PR didn't handle cases where we aren't dealing with an INDIRECT_REF expression, which means we fail to compile valid code. Fixed by moving the folding to cxx_eval_constant_expression, where we ought to be able to reduce all POINTER_PLUS_EXPRs in a constexpr

Re: C++ PATCH for c++/65398 (valid constexpr rejected once again)

2015-03-30 Thread Jason Merrill
OK, thanks. Jason