re PR c++/53017 (Integer constant expression not constant enough for vector_size)
commit5d77fb196b3b6a2aabbb50ce6502a46078162f67
authorMarc Glisse <marc.glisse@inria.fr>
Mon, 3 Feb 2014 19:07:55 +0000 (3 20:07 +0100)
committerMarc Glisse <glisse@gcc.gnu.org>
Mon, 3 Feb 2014 19:07:55 +0000 (3 19:07 +0000)
treeab881259a5ba57d9b1f3a45c2e5aedcfb8af1dd0
parentf344f525193bd4e271ea50c5eb7a4e92c57dbc67
re PR c++/53017 (Integer constant expression not constant enough for vector_size)

2014-02-03  Marc Glisse  <marc.glisse@inria.fr>

PR c++/53017
PR c++/59211
gcc/c-family/
* c-common.c (handle_aligned_attribute, handle_alloc_size_attribute,
handle_vector_size_attribute, handle_nonnull_attribute): Call
default_conversion on the attribute argument.
(handle_nonnull_attribute): Increment the argument number.
gcc/cp/
* tree.c (handle_init_priority_attribute): Call default_conversion on
the attribute argument.
gcc/
* doc/extend.texi (Function Attributes): Typo.
gcc/testsuite/
* c-c++-common/attributes-1.c: New testcase.
* g++.dg/cpp0x/constexpr-attribute2.C: Likewise.

From-SVN: r207436
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/tree.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/attributes-1.c [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-attribute2.C [new file with mode: 0644]