https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67767
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 30 12:31:21 2016 New Revision: 234551 URL: https://gcc.gnu.org/viewcvs?rev=234551&root=gcc&view=rev Log: Backported from mainline 2016-02-19 Jakub Jelinek <ja...@redhat.com> PR c++/67767 * parser.c (cp_parser_std_attribute_spec_seq): Don't assume attr_spec is always single element chain, chain all the attributes properly together in the right order. * g++.dg/cpp0x/pr67767.C: New test. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/pr67767.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/parser.c branches/gcc-5-branch/gcc/testsuite/ChangeLog