blob: 849a244696523e905e68e0f76a4e50adf1e37cf6 [file] [log] [blame]
// PR c++/89356
// { dg-do compile { target c++11 } }
typedef unsigned a;
template <typename> struct h {};
template <int, class b> auto c(b f) -> h<decltype(f(a{0}))>;
typedef char byte;
enum d : byte;
d g(byte);
h<d> e = c<6>(g);