Skip to content

Failure to deduce nested template arguments #140773

@Caslyn

Description

@Caslyn

After #138122, clang++ is failing to deduce a template parameter when instantiating a templated class object inside the ctor of another templated class object. In this case, we make an assignment to a static constexpr typed variable (ie we are not initializing a static inline auto variable).

@dty2 - could you help take a look into this and help determine whether this is an unintended consequence of #138122?

Attached is a reproducer that emulates this new compilation failure:
startup-random-867b56.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"needs-reductionLarge reproducer that should be reduced into a simpler form

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions