constexpr-array24.C
207 Bytes
-
c++: Fix constexpr vs. omitted aggregate init. · 0712ea63
Value-initialization is importantly different from {}-initialization for this testcase, where the former calls the deleted S constructor and the latter initializes S happily. PR c++/90951 * constexpr.c (cxx_eval_array_reference): {}-initialize missing elements instead of value-initializing them.Jason Merrill committed