Skip to content

Clang ICE on specialized template taking a member function pointer #130727

Closed
@tambry

Description

@tambry

The following crashes on trunk, but not on 20 or earlier.

template<typename T, T>
struct proxy;

template<typename T, typename R, typename... Args, R(T::*mf)()>
struct proxy<R(T::*)(Args...), mf>;

I was just trying to write some code to get the return of a member function. 🥲

Godbolt
GCC bug

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions