Skip to content

[Clang][Sema] Dubious temporary expression constructing CXXThisScopeRAII #130846

@chenm16

Description

@chenm16

In

ContextRAII Context(*this, NewContext);
CXXThisScopeRAII(*this, RD, ThisQuals, RD != nullptr);
MultiLevelTemplateArgumentList MLTAL = getTemplateInstantiationArgs(

The CXXThisScopeRAII temporary is destroyed at the end of the expression. Is it meant to be a variable definition?

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"code-quality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions