Re: [PATCH] c++: Fix value-init crash in template [PR93676]

2020-02-13 Thread Jason Merrill
On 2/11/20 8:54 PM, Marek Polacek wrote: Since we attempt to value-initialize in build_vec_init even when there's no initializer but the type has a constexpr default constructor. But build_value_init doesn't work in templates, so I think

[PATCH] c++: Fix value-init crash in template [PR93676]

2020-02-11 Thread Marek Polacek
Since we attempt to value-initialize in build_vec_init even when there's no initializer but the type has a constexpr default constructor. But build_value_init doesn't work in templates, so I think let's avoid this scenario; we'll go to the