1 // PR c++/47808 2 // { dg-options "" } 3 4 template <typename T> abs(T const & x)5 inline T abs (T const & x) { return x; } 6 7 template <typename T> f(T)8 void f (T) 9 { 10 typedef int ai[(abs(0.1) > 0) ? 1 : -1]; 11 } 12 main()13 int main() 14 { 15 f(1); 16 } 17