blob: 41f8526184a8a9903f181b7800bdc7dfc6eea608 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// PR c++/117054
// { dg-do compile { target c++20 } }
template<auto = []{}>
constexpr bool v = true;
template<typename>
void f() {
[](auto) {
if constexpr (v<>) { }
}(0);
}
int main() {
f<int>();
}
|