Re: [PATCH] Fix PR68087

2015-10-26 Thread Markus Trippelsdorf
On 2015.10.26 at 13:26 +0100, Richard Biener wrote: > On Mon, Oct 26, 2015 at 12:32 PM, Markus Trippelsdorf > wrote: > > diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c > > index ebca411b3eb4..0828a90b0e75 100644 > > --- a/gcc/cp/constexpr.c > > +++ b/gcc/cp/constexpr.c > > @@ -1782,8 +1782,

Re: [PATCH] Fix PR68087

2015-10-26 Thread Richard Biener
On Mon, Oct 26, 2015 at 12:32 PM, Markus Trippelsdorf wrote: > Hi, > > the patch below fixes PR68087, an ICE caused by referring to a negative > constexpr array element. > > Bootstrapped and tested on ppc64le. > OK for trunk? > > gcc-5 also needs a slightly different fix. I'll post that as a > fol

[PATCH] Fix PR68087

2015-10-26 Thread Markus Trippelsdorf
Hi, the patch below fixes PR68087, an ICE caused by referring to a negative constexpr array element. Bootstrapped and tested on ppc64le. OK for trunk? gcc-5 also needs a slightly different fix. I'll post that as a follow-up, once this one gets approved. PR c++/68087 * constexpr.