This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/58109] alignas() fails to compile with constant expression


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58109

--- Comment #8 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Sat Jan 23 16:01:47 2016
New Revision: 232766

URL: https://gcc.gnu.org/viewcvs?rev=232766&root=gcc&view=rev
Log:
PR c++/58109 - alignas() fails to compile with constant expression
PR c++/69022 - attribute vector_size ignored with dependent bytes

gcc/testsuite/ChangeLog:
2016-01-23  Martin Sebor  <msebor@redhat.com>

        PR c++/58109
        PR c++/69022
        * g++.dg/cpp0x/alignas5.C: New test.
        * g++.dg/ext/vector29.C: Same.

gcc/cp/ChangeLog:
2016-01-23  Martin Sebor  <msebor@redhat.com>

        PR c++/58109
        PR c++/69022
        * decl2.c (is_late_template_attribute): Handle dependent argument
        to attribute align and attribute vector_size.

Added:
    trunk/gcc/testsuite/g++.dg/ext/vector29.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl2.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/alignas5.C

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]