Re: [C++ PATCH] Implement P0138R2, C++17 construction rules for enum class values

2016-09-23 Thread Jason Merrill
OK. On Fri, Sep 23, 2016 at 1:14 PM, Jakub Jelinek wrote: > Hi! > > The following patch implements direct enum initialization as per C++17. > The change in reshape_init is needed for when it is called from > check_initializer and finish_compound_literal for e.g. E e { 5 } and > E { 5 } respective

[C++ PATCH] Implement P0138R2, C++17 construction rules for enum class values

2016-09-23 Thread Jakub Jelinek
Hi! The following patch implements direct enum initialization as per C++17. The change in reshape_init is needed for when it is called from check_initializer and finish_compound_literal for e.g. E e { 5 } and E { 5 } respectively, while the convert_for_assignment spot handles all the other cases,