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]

[C++ Patch] PR 58305


Hi,

I think it's rather clear that we should warn in this case too, that is, when we have:

    ToBeDeprecated();

for a deprecated ToBeDeprecated type. Note however in my patchlet the check on the TREE_CODE: if I remove it, then we also warn for the lines

    x = e;

and

    y = S::f;

of g++.dg/parse/attr3.C. This seems wrong per our documentation, because those lines do not *name* the deprecated types E and F, but may make sense, for example clang++ *does* warn on those.

Tested x86_64-linux.

Thanks!
Paolo.

////////////////////////////

Attachment: CL_58305
Description: Text document

Attachment: patch_58305
Description: Text document


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