Skip to content

Crash in getPackSubstitutedTemplateArgument #53609

@colavitam

Description

@colavitam

The following valid code causes a crash in all versions of clang I have tested (-std=c++17).

template <class, int> struct a;

template <class, class...> struct b;
template <class x, class... y, y... z>
struct b<x, a<y, z>...> {};

template <class... x> struct c: b<x>...  {};

c<int> d;

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions