diff options
author | Jason Merrill <jason@redhat.com> | 2022-03-21 17:48:01 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-03-21 18:25:17 -0400 |
commit | c65bd532e225996cc9c5b75355d2cb648d0bcfc5 (patch) | |
tree | 6fa70dfbc62338859e38abc9881745ffa5d063a5 /gcc/fold-const.cc | |
parent | bec69ac548b0f37b41d07082d6ee52b52d356536 (diff) | |
download | gcc-c65bd532e225996cc9c5b75355d2cb648d0bcfc5.zip gcc-c65bd532e225996cc9c5b75355d2cb648d0bcfc5.tar.gz gcc-c65bd532e225996cc9c5b75355d2cb648d0bcfc5.tar.bz2 |
c++: initialized array of vla [PR58646]
We went into build_vec_init because we're dealing with a VLA, but then
build_vec_init thought it was safe to just build an INIT_EXPR because the
outer dimension is constant. Nope.
PR c++/58646
gcc/cp/ChangeLog:
* init.cc (build_vec_init): Check for vla element type.
gcc/testsuite/ChangeLog:
* g++.dg/ext/vla24.C: New test.
Diffstat (limited to 'gcc/fold-const.cc')
0 files changed, 0 insertions, 0 deletions