Issue 93256
Summary Clang crashes with nested `std::apply()` calls
Labels clang
Assignees
Reporter Robochu
    The following code causes Clang to crash:
```cpp
#include <tuple>

template<typename A, typename B>
void bar(A a, B b) {}

template<typename... A, typename... B>
void foo(std::tuple<A...> a, std::tuple<B...> b) {
	std::apply([b](auto... a) {
		(std::apply([a](auto... b) {
			(bar(a, b), ...);
		}, b), ...);
	}, a);
}

int main() {
	foo(std::tuple<>{}, std::tuple<>{});
}

```
https://godbolt.org/z/E5qYEfGd3
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to