PR c++/29535
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jan 2007 08:03:26 +0000 (08:03 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jan 2007 08:03:26 +0000 (08:03 +0000)
* g++.dg/template/crash66.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120385 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b3ba5a7..88a0b34 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> {};