diff --git a/gcc/cp/typeck2.cc b/gcc/cp/typeck2.cc index cebe6acf487..23ed81ec063 100644 --- a/gcc/cp/typeck2.cc +++ b/gcc/cp/typeck2.cc @@ -922,6 +922,7 @@ store_init_value (tree decl, tree init, vec** cleanups, int flags) here it should have been digested into an actual value for the type. */ gcc_checking_assert (TREE_CODE (value) != CONSTRUCTOR || processing_template_decl + || TREE_CODE (type) == VECTOR_TYPE || !TREE_HAS_CONSTRUCTOR (value)); /* If the initializer is not a constant, fill in DECL_INITIAL with diff --git a/gcc/testsuite/gcc.c-torture/compile/20050113-1.c b/gcc/testsuite/c-c++-common/torture/20050113-1.c similarity index 100% rename from gcc/testsuite/gcc.c-torture/compile/20050113-1.c rename to gcc/testsuite/c-c++-common/torture/20050113-1.c