This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Testcase for PR c++/13744
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Apr 2005 14:06:07 +0200 (CEST)
- Subject: [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>();
===================================================================