Re: C++ PATCH for c++/67364 (constexpr vs. empty class)

2016-03-04 Thread Jason Merrill
On 03/03/2016 05:37 PM, Jason Merrill wrote: On 02/25/2016 09:08 AM, Jason Merrill wrote: We don't bother evaluating a store to an empty class member, and we shouldn't complain about accesses either. This needs to use really_empty_class, since that's what expand_aggr_init_1 uses. And even ca

Re: C++ PATCH for c++/67364 (constexpr vs. empty class)

2016-03-03 Thread Jason Merrill
On 02/25/2016 09:08 AM, Jason Merrill wrote: We don't bother evaluating a store to an empty class member, and we shouldn't complain about accesses either. This needs to use really_empty_class, since that's what expand_aggr_init_1 uses. Tested x86_64-pc-linux-gnu, applying to trunk and 5. c

C++ PATCH for c++/67364 (constexpr vs. empty class)

2016-02-25 Thread Jason Merrill
We don't bother evaluating a store to an empty class member, and we shouldn't complain about accesses either. Tested x86_64-pc-linux-gnu, applying to trunk and 5. commit fd0e8f3776afa35340bcd3c555280012aa82f645 Author: Jason Merrill Date: Wed Feb 24 17:14:41 2016 -0500 PR c++/67364