This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: deprecate ignored attributes?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]