Skip to content

Clang frontend crash with deduction guide inside class template #88142

Closed
@elbeno

Description

@elbeno

This seems to be a regression from 17 to 18/trunk.

template <typename, typename...>
struct X {
  template <typename>
  struct Y {
    template <typename T>
    Y(T) {}
  };

  template <typename T, typename... Vs>
  Y(T, Vs...) -> Y<T>;
};

using T = X<int>::Y<int>;

https://godbolt.org/z/K5d3sWGjP

Metadata

Metadata

Assignees

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