Re: [PATCH] PR c++/87893 - constexpr ctor ICE on ARM.

2019-01-23 Thread Jason Merrill
On 1/23/19 9:26 AM, Ramana Radhakrishnan wrote: On Wed, Jan 23, 2019 at 1:54 PM Jason Merrill wrote: Since in r265788 I made cxx_eval_outermost_constant_expr more insistent that the returned value have the right type, it became more important that initialized_type be correct. These two PRs

Re: [PATCH] PR c++/87893 - constexpr ctor ICE on ARM.

2019-01-23 Thread Ramana Radhakrishnan
On Wed, Jan 23, 2019 at 1:54 PM Jason Merrill wrote: > > Since in r265788 I made cxx_eval_outermost_constant_expr more insistent that > the returned value have the right type, it became more important that > initialized_type be correct. These two PRs were cases of it giving the wrong > answer.

[PATCH] PR c++/87893 - constexpr ctor ICE on ARM.

2019-01-23 Thread Jason Merrill
Since in r265788 I made cxx_eval_outermost_constant_expr more insistent that the returned value have the right type, it became more important that initialized_type be correct. These two PRs were cases of it giving the wrong answer. On ARM, a constructor returns a pointer to the object, but