Skip to content

[clang] crash when using [[clang::musttail]] on function marked [[noreturn]] #76631

Closed
@philnik777

Description

@philnik777
[[noreturn]] void throw_int() {
  throw int();
}

void throw_int_wrapper() {
  [[clang::musttail]] return throw_int();
}

causes clang to crash: https://godbolt.org/z/vvPh9KGGn

Metadata

Metadata

Assignees

No one assigned

    Labels

    clang:frontendLanguage frontend issues, e.g. anything involving "Sema"crashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions