Re: [C++/70393] constexpr constructor

2016-03-30 Thread Jason Merrill
On 03/30/2016 01:40 PM, Nathan Sidwell wrote: On 03/30/16 13:22, Jason Merrill wrote: On 03/29/2016 08:40 AM, Nathan Sidwell wrote: + /* The field we're initializing must be on the field + list. Look to see if it is present before the + field the current ELT initialize

Re: [C++/70393] constexpr constructor

2016-03-30 Thread Nathan Sidwell
On 03/30/16 13:22, Jason Merrill wrote: On 03/29/2016 08:40 AM, Nathan Sidwell wrote: + /* The field we're initializing must be on the field + list. Look to see if it is present before the + field the current ELT initializes. */ + for (; fields != cep->index;

Re: [C++/70393] constexpr constructor

2016-03-30 Thread Jason Merrill
On 03/29/2016 08:40 AM, Nathan Sidwell wrote: + /* The field we're initializing must be on the field +list. Look to see if it is present before the +field the current ELT initializes. */ + for (; fields != cep->index; fields = DECL_CHAIN (

[C++/70393] constexpr constructor

2016-03-29 Thread Nathan Sidwell
This patch fixes 70393 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70393 'ab's construction used to be dynamic but becomes static with C++11 constexpr constructors (I'm not sure whether we're doing more than the std requires, but that's not important). However, 'AB's bases are not laid out i