On 6/21/19 8:09 AM, Marek Polacek wrote:
> These functions are using TREE_PURPOSE to get the attribute name,
> which is breaking now that we preserve the C++11-style attribute
> format past decl_attributes.  So use get_attribute_name which can
> handle both formats of attributes.
> 
> Bootstrapped/regtested on x86_64-linux, ok for trunk?
> 
> 2019-06-21  Marek Polacek  <pola...@redhat.com>
> 
>       PR c++/90953 - ICE with -Wmissing-format-attribute.
>       * c-common.c (check_function_arguments_recurse): Use
>       get_attribute_name.
>       (check_missing_format_attribute): Likewise.
> 
>       * g++.dg/warn/miss-format-7.C: New test.
OK
jeff

Reply via email to