re PR c++/29535 (ICE in instantiate_class_template, at cp/pt.c:5728)
authorJakub Jelinek <jakub@redhat.com>
Wed, 3 Jan 2007 08:03:26 +0000 (09:03 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 3 Jan 2007 08:03:26 +0000 (09:03 +0100)
PR c++/29535
* g++.dg/template/crash66.C: New test.

From-SVN: r120385

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

index b3ba5a70c77cd5f08b887cdbe4fd5ab60d8c4cf1..88a0b34830951e8f8def888e03261d5eea1be090 100644 (file)
@@ -1,5 +1,8 @@
 2007-01-03  Jakub Jelinek  <jakub@redhat.com>
 
+       PR c++/29535
+       * g++.dg/template/crash66.C: New test.
+
        PR c++/29054
        * g++.dg/template/friend49.C: New test.
 
diff --git a/gcc/testsuite/g++.dg/template/crash66.C b/gcc/testsuite/g++.dg/template/crash66.C
new file mode 100644 (file)
index 0000000..3517311
--- /dev/null
@@ -0,0 +1,17 @@
+// PR c++/29535
+// { dg-do compile }
+
+template <class INDEX> struct SetRegion2D
+{
+  struct FloodFillControl
+  {
+    struct Allocator{};
+  };
+};
+template <int DIM, class PIXELINDEX>
+struct MotionSearcher
+{
+ typedef SetRegion2D<PIXELINDEX> Region_t;
+ MotionSearcher (typename Region_t::FloodFillControl::Allocator &a_rAllocator);
+};
+class MotionSearcherY : public MotionSearcher<1, int> {};