2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/44118
* g++.dg/template/crash105.C: New.
From-SVN: r170336
+2011-02-20 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/44118
+ * g++.dg/template/crash105.C: New.
+
2011-02-19 Jason Merrill <jason@redhat.com>
* g++.dg/cpp0x/regress/no-elide1.C: New.
--- /dev/null
+// PR c++/44118
+
+template < typename > struct S;
+template < typename > struct S < int >; // { dg-error "template" }
+template < typename > struct S < int >
+{
+ void f ();
+};
+
+void
+f ()
+{
+ S < int >::f (); // { dg-error "cannot call" }
+}