[Bug c++/67767] -Wsuggest-attribute=noreturn suggests noreturn for function which already has noreturn and cold.
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Feb 19 16:02:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67767
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Fri Feb 19 16:01:50 2016
New Revision: 233560
URL: https://gcc.gnu.org/viewcvs?rev=233560&root=gcc&view=rev
Log:
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:
trunk/gcc/testsuite/g++.dg/cpp0x/pr67767.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list