This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
deprecate ignored attributes?
- From: Nathan Sidwell <nathan at acm dot org>
- To: Jason Merrill <jason at redhat dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Mar 2018 10:37:13 -0400
- Subject: deprecate ignored attributes?
Jason, in parser.c
/* The old parser allows attributes to appear after a parenthesized
initializer. Mark Mitchell proposed removing this functionality
on the GCC mailing lists on 2002-08-13. This parser accepts the
attributes -- but ignores them. */
if (cp_parser_allow_gnu_extensions_p (parser)
&& initialization_kind == CPP_OPEN_PAREN)
if (cp_parser_attributes_opt (parser))
warning (OPT_Wattributes,
"attributes after parenthesized initializer ignored");
Noisy deprecation warning time?
nathan
--
Nathan Sidwell