* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / decltype29.C
blob51da8ddd0ded6a2c1049c6c720a6d21d2889173d
1 // PR c++/44175
2 // { dg-do compile { target c++11 } }
4 template <bool, class T> struct enable_if { };
5 template <class T> struct enable_if <true, T> { typedef T type; };
7 template <int x>
8 typename enable_if<x==0,int>::type
9 ft() {}
11 template<class F, int N>
12 decltype (ft<F> (F()))          // { dg-error "depth" }
13 ft() {}
15 int main() {
16     ft<struct a*, 0>();         // { dg-message "from here" }
19 // { dg-prune-output "compilation terminated" }