2012-10-25 Jason Merrill <jason@redhat.com>
+ * semantics.c (finish_omp_threadprivate): Call complete_type.
+
* class.c (one_inherited_ctor): Warn about variadic inherited ctor.
2012-10-25 Marc Glisse <marc.glisse@inria.fr>
error ("%qE declared %<threadprivate%> after first use", v);
else if (! TREE_STATIC (v) && ! DECL_EXTERNAL (v))
error ("automatic variable %qE cannot be %<threadprivate%>", v);
- else if (! COMPLETE_TYPE_P (TREE_TYPE (v)))
+ else if (! COMPLETE_TYPE_P (complete_type (TREE_TYPE (v))))
error ("%<threadprivate%> %qE has incomplete type", v);
else if (TREE_STATIC (v) && TYPE_P (CP_DECL_CONTEXT (v))
&& CP_DECL_CONTEXT (v) != current_class_type)