This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Testcase for PR c++/13744


The following patch adds a testcase for PR c++/13744 which was
accidentally fixed on mainline by Kazu's cleanup
http://gcc.gnu.org/ml/gcc-cvs/2005-04/msg00458.html
(The patch removes the call to the function that used to crash.)

Committed to mainline as obvious.

Regards,
Volker


2005-04-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>

	PR c++/13744
	* g++.dg/inherit/local3.C: New test.

===================================================================
--- g++.dg/inherit/local3.C	1 Jan 1970 00:00:00 -0000
+++ g++.dg/inherit/local3.C	13 Apr 2005 11:59:43 -0000
@@ -0,0 +1,14 @@
+// PR c++/13744 (ice-on-valid-code)
+// Origin: Thom Harp <thomharp@charter.net>
+
+// { dg-do compile }
+
+template<int> void foo()
+{
+    struct A
+    {
+        virtual void bar() { A a(*this); }
+    } a;
+}
+
+template void foo<0>();
===================================================================



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]