1 // Build don't link: 2 // 3 // Copyright (C) 2000 Free Software Foundation, Inc. 4 // Contributed by Nathan Sidwell 19 Jan 2001 <nathan@codesourcery.com> 5 6 // Bug 1638. We failed to check if a function instantiation produced a void 7 // parameter type. 8 9 template <class T> struct S 10 { 11 int f (T); // ERROR - void type 12 }; 13 foo()14void foo () 15 { 16 S<void> s; 17 } 18