]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c/58267 (Alignment specifier allowed within array declarator;)
authorMarek Polacek <polacek@redhat.com>
Thu, 17 Oct 2013 08:14:23 +0000 (08:14 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Thu, 17 Oct 2013 08:14:23 +0000 (08:14 +0000)
commit568a31f2f6e231543a32e388c12ee8da9df23c53
tree897c05236e1319fdfa544ab70f8d95774a00628d
parentd0627cf297996254f9d64e517e6feb05f473c2e3
re PR c/58267 (Alignment specifier allowed within array declarator;)

PR c/58267
c/
* c-parser.c (c_parser_declspecs): Add alignspec_ok parameter.
Document syntax of the array-declarator.
(c_parser_declspecs) <RID_ALIGNAS>: Bail out if alignment specs
are not permitted.
(c_parser_declaration_or_fndef): Adjust c_parser_declspecs call.
(c_parser_struct_declaration): Likewise.
(c_parser_declarator): Likewise.
(c_parser_direct_declarator_inner): Likewise.
(c_parser_parameter_declaration): Likewise.
(c_parser_type_name): Likewise.
testsuite/
* gcc.dg/c1x-align-5.c: New test.

From-SVN: r203742
gcc/c/ChangeLog
gcc/c/c-parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/c1x-align-5.c [new file with mode: 0644]