re PR c++/67767 (-Wsuggest-attribute=noreturn suggests noreturn for function which...
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Feb 2016 16:01:50 +0000 (17:01 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Feb 2016 16:01:50 +0000 (17:01 +0100)
commit19e2158623cf45a9c9ea731957bea6c3de4a4e56
treee5a018c85eb5153fd7dee63c69b092e027fefa0c
parent2db16594fe8bebd0ea784d4b3004a8f0c1af7869
re PR c++/67767 (-Wsuggest-attribute=noreturn suggests noreturn for function which already has noreturn and cold.)

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.

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