1 // Contributed by Dodji Seketeli <dodji@redhat.com> 2 // Origin: PR c++/17395 3 // { dg-do compile } 4 5 template<int> struct X { }; 6 fu(int a,X<sizeof (a)>)7void fu(int a, X<sizeof(a)>) { } 8 9 template<class T> bhar(T a,X<sizeof (a)>)10void bhar(T a, X<sizeof(a)>) { } 11 12 int main()13main() 14 { 15 int x; 16 X<sizeof(int)> y; 17 fu(x, y); 18 bhar(x, y); 19 } 20