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