Incorrect "invalid conversion" error with decltype(<lambda>) in default template arguments #122287
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
lambda
C++11 lambda expressions
The following code fails to compile (see https://godbolt.org/z/zTf49f9oe):
Adding an empty template argument list makes the error go away (see https://godbolt.org/z/dz7eMaM54):
auto example = Example<>();
So this seems to be related to deduction guides somehow. Could it be that we synthesize a new lambda type for CTAD and happen to mix it with types that we also creates during substitution?
cc @hokein who recently worked on CTAD, in case he has any ideas.
The text was updated successfully, but these errors were encountered: