1 // PR c++/89356
2 // { dg-do compile { target c++11 } }
3 
4 typedef unsigned a;
5 template <typename> struct h {};
6 template <int, class b> auto c(b f) -> h<decltype(f(a{0}))>;
7 typedef char byte;
8 enum d : byte;
9 d g(byte);
10 h<d> e = c<6>(g);
11