Commit 6e1b3a7c by Aldy Hernandez Committed by Aldy Hernandez

decl.c (check_initializer): Check for vector_opaque_p.

2003-03-02  Aldy Hernandez  <aldyh@redhat.com>

        * cp/decl.c (check_initializer): Check for vector_opaque_p.

From-SVN: r63713
parent 90d86c43
2003-03-02 Aldy Hernandez <aldyh@redhat.com>
* decl.c (check_initializer): Check for vector_opaque_p.
2003-03-02 Ashif Harji <asharji@uwaterloo.ca>
* lang-specs.h (default_compilers): Add -no-integrated-cpp flag to
......
......@@ -7772,6 +7772,12 @@ check_initializer (tree decl, tree init, int flags)
scalar, so just don't call it. */
if (CP_AGGREGATE_TYPE_P (type))
init = reshape_init (type, &init);
if ((*targetm.vector_opaque_p) (type))
{
error ("opaque vector types cannot be initialized");
init = error_mark_node;
}
}
/* If DECL has an array type without a specific bound, deduce the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment