PR c++/68703 - bogus error with dependent vector length
authorJason Merrill <jason@redhat.com>
Tue, 9 Aug 2016 22:03:07 +0000 (18:03 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 9 Aug 2016 22:03:07 +0000 (18:03 -0400)
commitf3365c1201908df5e3f929cc8fec3f4b88c126c6
treeaff9bbf2a3b0a1784c16e435791500d42f2046d1
parentb7597ae57977ff3d4ff359141a471acf22001f92
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
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/pt.c
gcc/cp/semantics.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/ext/vector32.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/vector32a.C [new file with mode: 0644]