+2012-12-14 Jason Merrill <jason@redhat.com>
+
+ PR c++/42315
+ * decl.c (maybe_deduce_size_from_array_init): Don't change the
+ variable type.
+
2012-12-13 Jakub Jelinek <jakub@redhat.com>
PR c++/55652
if (failure == 1)
{
error ("initializer fails to determine size of %qD", decl);
- TREE_TYPE (decl) = error_mark_node;
}
else if (failure == 2)
{
if (do_default)
{
error ("array size missing in %qD", decl);
- TREE_TYPE (decl) = error_mark_node;
}
/* If a `static' var's size isn't known, make it extern as
well as static, so it does not get allocated. If it's not
else if (failure == 3)
{
error ("zero-size array %qD", decl);
- TREE_TYPE (decl) = error_mark_node;
}
}
// { dg-do compile }
// { dg-options "-fopenmp" }
-char x[] = 0; // { dg-error "initializer fails to determine size" }
+char x[] = 0; // { dg-error "initializer" }
#pragma omp threadprivate (x)