c++: vector compound literal [PR105187]
commitd9421784980276b42ecdce85b6dde28e965c88c6
authorJason Merrill <jason@redhat.com>
Thu, 7 Apr 2022 00:04:21 +0000 (6 20:04 -0400)
committerJason Merrill <jason@redhat.com>
Thu, 7 Apr 2022 01:27:27 +0000 (6 21:27 -0400)
treeb039ced4f783f9a5a1ded4437c142f318025c29e
parent80eb8ec67277b83fdeec01427cf1609f1f679fed
c++: vector compound literal [PR105187]

My cleanup in r12-296 cleared TREE_HAS_CONSTRUCTOR on digested class
initializers, but we leave it set for vectors, since we can't wrap them in
TARGET_EXPR.

PR c++/105187

gcc/cp/ChangeLog:

* typeck2.cc (store_init_value): Allow TREE_HAS_CONSTRUCTOR for
vectors.

gcc/testsuite/ChangeLog:

* gcc.c-torture/compile/20050113-1.c: Moved to...
* c-c++-common/torture/20050113-1.c: ...here.
gcc/cp/typeck2.cc
gcc/testsuite/c-c++-common/torture/20050113-1.c [moved from gcc/testsuite/gcc.c-torture/compile/20050113-1.c with 100% similarity]