diff options
author | Jason Merrill <jason@redhat.com> | 2016-08-09 18:03:07 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2016-08-09 18:03:07 -0400 |
commit | f3365c1201908df5e3f929cc8fec3f4b88c126c6 (patch) | |
tree | aff9bbf2a3b0a1784c16e435791500d42f2046d1 /gcc/c-family | |
parent | b7597ae57977ff3d4ff359141a471acf22001f92 (diff) | |
download | gcc-f3365c1201908df5e3f929cc8fec3f4b88c126c6.zip gcc-f3365c1201908df5e3f929cc8fec3f4b88c126c6.tar.gz gcc-f3365c1201908df5e3f929cc8fec3f4b88c126c6.tar.bz2 |
PR c++/68703 - bogus error with dependent vector length
gcc/c-family/
* c-common.c (c_common_attribute_table): vector_size affects type
identity.
gcc/cp/
* decl2.c (any_dependent_type_attributes_p): New.
* pt.c (dependent_type_p_r, type_dependent_expression_p): Check it.
* semantics.c (finish_id_expression): Check it.
* typeck.c (finish_class_member_access_expr): Check it.
From-SVN: r239309
Diffstat (limited to 'gcc/c-family')
-rw-r--r-- | gcc/c-family/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/c-family/c-common.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index a1dbc73..def4e11 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2016-08-09 Jason Merrill <jason@redhat.com> + + * c-common.c (c_common_attribute_table): vector_size affects type + identity. + 2016-08-09 Marek Polacek <polacek@redhat.com> PR c/7652 diff --git a/gcc/c-family/c-common.c b/gcc/c-family/c-common.c index 569f000..7fd84ee 100644 --- a/gcc/c-family/c-common.c +++ b/gcc/c-family/c-common.c @@ -754,7 +754,7 @@ const struct attribute_spec c_common_attribute_table[] = { "deprecated", 0, 1, false, false, false, handle_deprecated_attribute, false }, { "vector_size", 1, 1, false, true, false, - handle_vector_size_attribute, false }, + handle_vector_size_attribute, true }, { "visibility", 1, 1, false, false, false, handle_visibility_attribute, false }, { "tls_model", 1, 1, true, false, false, |