Compiler behavior with recursive incomplete types and generic lambda arguments
The following code compiles successfully with GCC 14.1 (-std=c++20
) (godbolt), but Clang 18.1.0 (godbolt) fails to compile for some reason:
The following code compiles successfully with GCC 14.1 (-std=c++20
) (godbolt), but Clang 18.1.0 (godbolt) fails to compile for some reason: