1 // PR c++/44175
2 // { dg-do compile { target c++11 } }
3 
4 template <bool, class T> struct enable_if { };
5 template <class T> struct enable_if <true, T> { typedef T type; };
6 
7 template <int x>
8 typename enable_if<x==0,int>::type
9 ft() {}
10 
11 template<class F, int N>
12 decltype (ft<F> (F()))		// { dg-error "depth" }
13 ft() {}
14 
15 int main() {
16     ft<struct a*, 0>();		// { dg-message "from here" }
17 }
18 
19 // { dg-prune-output "compilation terminated" }
20