Closed Quuxplusone closed 3 months ago
("Deducing this" implementation progress is being tracked in https://github.com/llvm/llvm-project/issues/59619 )
Clang accepts the following invalid code: https://godbolt.org/z/rr1TKejPz
struct S { int f(int); }; using T = int (S::*)(this int); // INVALID T t = &S::f;
GCC correctly rejects:
error: a pointer to member function type cannot have an explicit object parameter
Probably will be resolved by @Sirraide's https://github.com/llvm/llvm-project/pull/89078
Fixed by #89078.
("Deducing this" implementation progress is being tracked in https://github.com/llvm/llvm-project/issues/59619 )
Clang accepts the following invalid code: https://godbolt.org/z/rr1TKejPz
GCC correctly rejects: