| 1 |
// PR c++/123700 |
| 2 |
// { dg-do compile { target c++20 } } |
| 3 |
|
| 4 |
template<class> constexpr int zero = 0; |
| 5 |
template<auto> struct Type; |
| 6 |
|
| 7 |
int outer(auto) { |
| 8 |
using inner = Type<[](auto) {}>; |
| 9 |
return [](auto) { return zero<inner>; }(0); |
| 10 |
} |
| 11 |
|
| 12 |
int main() { outer(0.0); } |