[Bug c++/53017] Integer constant expression not constant enough for vector_size
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 3 19:08:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53017
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
Author: glisse
Date: Mon Feb 3 19:07:55 2014
New Revision: 207436
URL: http://gcc.gnu.org/viewcvs?rev=207436&root=gcc&view=rev
Log:
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.
Added:
trunk/gcc/testsuite/c-c++-common/attributes-1.c (with props)
trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-attribute2.C (with props)
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-family/ChangeLog
trunk/gcc/c-family/c-common.c
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/tree.c
trunk/gcc/doc/extend.texi
trunk/gcc/testsuite/ChangeLog
Propchange: trunk/gcc/testsuite/c-c++-common/attributes-1.c
('svn:eol-style' added)
Propchange: trunk/gcc/testsuite/c-c++-common/attributes-1.c
('svn:keywords' added)
Propchange: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-attribute2.C
('svn:eol-style' added)
Propchange: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-attribute2.C
('svn:keywords' added)
More information about the Gcc-bugs
mailing list