deprecate ignored attributes?
Jason Merrill
jason@redhat.com
Tue Mar 20 16:53:00 GMT 2018
On Tue, Mar 20, 2018 at 10:37 AM, Nathan Sidwell <nathan@acm.org> wrote:
> 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?
Sure.
Jason
More information about the Gcc-patches
mailing list