PR c++/44118
* g++.dg/template/crash105.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170336
138bc75d-0d04-0410-961f-
82ee72b054a4
+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" }
+}