Re: C++ PATCH for c++/65642 (rejects-valid-constexpr)

2015-04-02 Thread Jason Merrill
OK. Jason

C++ PATCH for c++/65642 (rejects-valid-constexpr)

2015-04-02 Thread Marek Polacek
This fixes the regression part of c++/65642. Some history behind this: up until r214941 we were able to fold "&A[i] + j" into "&A[i + j]", but in this revision richi removed this transformation. Since we need this transformation when dealing with constexprs, I added it back into cxx_fold_indirect