re PR c++/13744 (ICE when using implicit copy constructor for struct defined in templ...
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>
Wed, 13 Apr 2005 12:01:03 +0000 (12:01 +0000)
committerVolker Reichelt <reichelt@gcc.gnu.org>
Wed, 13 Apr 2005 12:01:03 +0000 (12:01 +0000)
PR c++/13744
* g++.dg/inherit/local3.C: New test.

From-SVN: r98082

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/local3.C [new file with mode: 0644]

index c756bbc..de9f911 100644 (file)
@@ -1,3 +1,8 @@
+2005-04-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
+
+       PR c++/13744
+       * g++.dg/inherit/local3.C: New test.
+
 2005-04-12  Jeff Law  <law@redhat.com>
 
        * gcc.dg/tree-ssa/20050412-1.c: New test.
diff --git a/gcc/testsuite/g++.dg/inherit/local3.C b/gcc/testsuite/g++.dg/inherit/local3.C
new file mode 100644 (file)
index 0000000..b116464
--- /dev/null
@@ -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>();