Skip to content

[[deprecated]] applied to local variables #90073

Closed
@cor3ntin

Description

@cor3ntin

GCC warns on local variables marked [[deprecated]]
https://compiler-explorer.com/z/nvfdTeveP

This behavior seems to be backed by the standard https://eel.is/c++draft/dcl.attr#deprecated-2.sentence-1

Should we follow suite? Arguably, it would be of limited usefulness.

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:diagnosticsNew/improved warning or error message in Clang, but not in clang-tidy or static analyzerclang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second party

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions