re PR c++/83300 (Segmentation fault with template and __attribute__((vector_size...
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Dec 2017 17:52:13 +0000 (18:52 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 18 Dec 2017 17:52:13 +0000 (18:52 +0100)
commit58cc7d798875aee798ba6a5b07c9324717160a2c
tree8d372d57995156dce5e48bf2bddbd29ebf1e01fe
parent82cfbd01e4870097de5f9ccdae900141b382d70e
re PR c++/83300 (Segmentation fault with template and __attribute__((vector_size (sizeof(int) * N)));)

PR c++/83300
* decl2.c (save_template_attributes): Add flags argument, if
not ATTR_FLAG_TYPE_IN_PLACE, *decl_p is a type and we want to
modify TYPE_ATTRIBUTES, add them on type attribute variant.

* g++.dg/ext/vector33.C: New test.

From-SVN: r255783
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vector33.C [new file with mode: 0644]