Skip to content

-Wconsumed is ignored on destructors #138890

Open
@apache-hb

Description

@apache-hb

In this example the destructor is marked [[clang::callable_when(consumed)]], and the constructor is marked with [[clang::return_typestate(unconsumed)]]. Despite this there is no warning issued when the destructor is reached on an unconsumed instance of IplTag

Metadata

Metadata

Assignees

No one assigned

    Labels

    c++clang:analysisclang: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