aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.c
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2014-02-03 20:07:55 +0100
committerMarc Glisse <glisse@gcc.gnu.org>2014-02-03 19:07:55 +0000
commit5d77fb196b3b6a2aabbb50ce6502a46078162f67 (patch)
treeab881259a5ba57d9b1f3a45c2e5aedcfb8af1dd0 /gcc/cp/tree.c
parentf344f525193bd4e271ea50c5eb7a4e92c57dbc67 (diff)
downloadgcc-5d77fb196b3b6a2aabbb50ce6502a46078162f67.zip
gcc-5d77fb196b3b6a2aabbb50ce6502a46078162f67.tar.gz
gcc-5d77fb196b3b6a2aabbb50ce6502a46078162f67.tar.bz2
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
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r--gcc/cp/tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index fe2ddab..5567253 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -3250,6 +3250,7 @@ handle_init_priority_attribute (tree* node,
int pri;
STRIP_NOPS (initp_expr);
+ initp_expr = default_conversion (initp_expr);
if (!initp_expr || TREE_CODE (initp_expr) != INTEGER_CST)
{