Skip to content

[Clang] Crash instantiating a dependent lambda annotated with annotate_type #85154

@Sirraide

Description

@Sirraide

This crashes when we try to instantiate the lambda:

template <typename T>
void h() {
  (void) [] (T) [[clang::annotate_type("foo")]] { };
}

void f() {
  h<int>();
}

Metadata

Metadata

Assignees

Labels

clang:frontendLanguage frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partycrash-on-validlambdaC++11 lambda expressions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions