Debian Codegraph @

gcc/testsuite/g++.dg/cpp2a/constexpr-inst2.C

raw
1 // { dg-do compile { target c++11 } }
2
3 struct __as_receiver {
4 int empty_env;
5 };
6
7 template<class T>
8 constexpr int f(T t) {
9 return t.fail;
10 };
11
12 using type = decltype(__as_receiver{f(0)}); // OK, f<int> not instantiated