Debian Codegraph @

gcc/testsuite/g++.dg/cpp1z/constexpr-if30.C

raw
1 // { dg-do compile { target c++17 } }
2
3 auto fn = [](auto i) {
4 if constexpr (sizeof(i) == 1)
5 return fn(123); // { dg-error "auto" }
6 };
7
8 int main() {
9 fn('!');
10 }