Index: g++.dg/other/vararg-4.C =================================================================== --- g++.dg/other/vararg-4.C (revision 0) +++ g++.dg/other/vararg-4.C (working copy) @@ -0,0 +1,12 @@ +// PR c++/37404 + +typedef __builtin_va_list __gnuc_va_list; +typedef __gnuc_va_list va_list; + +template struct S { static void foo () { } }; +template +struct S { static void foo () { T(); } }; + +int main () { + S::foo(); +}