diff options
| author | Jason Merrill <jason@redhat.com> | 2020-02-04 15:54:17 -0500 |
|---|---|---|
| committer | Jason Merrill <jason@redhat.com> | 2020-02-04 17:22:15 -0500 |
| commit | 0712ea6313bc44f9ae8feb235c1b02c92cdd0527 (patch) | |
| tree | 3aa6e9002bb84eff5d079942d90f2d4820928362 /gcc/cp/constraint.cc | |
| parent | a1c9c9ff06ab15e697d5bac6ea6e5da2df840cf5 (diff) | |
| download | gcc-0712ea6313bc44f9ae8feb235c1b02c92cdd0527.zip gcc-0712ea6313bc44f9ae8feb235c1b02c92cdd0527.tar.gz gcc-0712ea6313bc44f9ae8feb235c1b02c92cdd0527.tar.bz2 | |
c++: Fix constexpr vs. omitted aggregate init.
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.
Diffstat (limited to 'gcc/cp/constraint.cc')
0 files changed, 0 insertions, 0 deletions
