Re: C++ PATCH to reduced_constant_expression for partially-initialized objects

2017-09-12 Thread Christophe Lyon
On 12 September 2017 at 16:21, Andrew Pinski wrote: > On Tue, Sep 12, 2017 at 7:17 AM, Christophe Lyon > wrote: >> Hi Jason >> >> On 10 September 2017 at 11:09, Jason Merrill wrote: >>> A few months back I queued this patch to

Re: C++ PATCH to reduced_constant_expression for partially-initialized objects

2017-09-12 Thread Andrew Pinski
On Tue, Sep 12, 2017 at 7:17 AM, Christophe Lyon wrote: > Hi Jason > > On 10 September 2017 at 11:09, Jason Merrill wrote: >> A few months back I queued this patch to bring back for GCC 8. >> Unfortunately I don't remember the context that it came up

Re: C++ PATCH to reduced_constant_expression for partially-initialized objects

2017-09-12 Thread Christophe Lyon
Hi Jason On 10 September 2017 at 11:09, Jason Merrill wrote: > A few months back I queued this patch to bring back for GCC 8. > Unfortunately I don't remember the context that it came up in, but it > affects for instance cases of self-assignment, which can't have a > constant

C++ PATCH to reduced_constant_expression for partially-initialized objects

2017-09-10 Thread Jason Merrill
A few months back I queued this patch to bring back for GCC 8. Unfortunately I don't remember the context that it came up in, but it affects for instance cases of self-assignment, which can't have a constant value if there is no previous initialization. Tested x86_64-pc-linux-gnu, applying to