re PR c++/59012 (alignas does not support parameter pack expansions)
authorJason Merrill <jason@redhat.com>
Fri, 8 May 2015 04:42:06 +0000 (00:42 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 8 May 2015 04:42:06 +0000 (00:42 -0400)
commit90f11cf950130d1aa6030a3c0df2e400ca14df7b
treeb2591e49fe79dd3800adbf26cc69f460692ac9a4
parentd87333bcc8e322d0469e184e8a195018536e77df
re PR c++/59012 (alignas does not support parameter pack expansions)

PR c++/59012
* parser.c (cp_parser_std_attribute_list): Handle attribute expansion.
(cp_parser_std_attribute_spec): Handle alignas pack expansion.
* decl2.c (is_late_template_attribute): An attribute exp is dependent.
* pt.c (make_pack_expansion): Allow TREE_LIST for attribute expansion.
(apply_late_template_attributes): Handle attribute pack expansion.

From-SVN: r222902
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/cp/parser.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp0x/alignas4.C [new file with mode: 0644]