On 1/10/20 3:28 PM, Jakub Jelinek wrote:
Hi!
As the following testcase shows, when deprecated attribute is on a template,
we'd never print the message if any, because the attribute is not
present on the TEMPLATE_DECL with which warn_deprecated_use is called,
but on its DECL_TEMPLATE_RESULT or it
Hi!
I'd like to ping following patch. Thanks.
On Fri, Jan 10, 2020 at 09:28:20PM +0100, Jakub Jelinek wrote:
> 2020-01-10 Jakub Jelinek
>
> PR c++/93228
> * parser.c (cp_parser_template_name): Look up deprecated attribute
> in DECL_TEMPLATE_RESULT or its type's attributes.
Hi!
As the following testcase shows, when deprecated attribute is on a template,
we'd never print the message if any, because the attribute is not
present on the TEMPLATE_DECL with which warn_deprecated_use is called,
but on its DECL_TEMPLATE_RESULT or its type.
Fixed thusly, bootstrapped/regtest