aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/constexpr-inst2.C
blob: 7676b625321a441d9a58de7b34238f11d43c90ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }

struct __as_receiver {
  int empty_env;
};

template<class T>
constexpr int f(T t) {
  return t.fail;
};

using type = decltype(__as_receiver{f(0)}); // OK, f<int> not instantiated