* pt.c (tsubst_decl): If the type of a template instantiation is
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / error2.C
blob21518aac525166038a49e831d6164502ddf9fbf2
1 // Build don't link:
2 // Origin: Carl Nygard <cnygard@bellatlantic.net>
4 template <class RT>
5 class Test { // ERROR - in instantiation
6 public:
7   Test(const RT& c = RT()) {} // ERROR - reference to void
8 };
10 void f ()
12   Test<void> c; // ERROR - instantiated from here