Skip to content

clang 16 -> 17 regression: "deduced return type cannot be used before it is defined" #64029

@helmesjo

Description

@helmesjo

See minimal reproducer here (godbolt).

It works fine in Clang 16.0.0 (and older, tested back to 11.0), but fails in 17 (trunk).

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"regression

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions