re PR c++/9727 (ICE in pushclass() with template and conversion operator)
authorMark Mitchell <mark@codesourcery.com>
Fri, 21 Feb 2003 21:48:09 +0000 (21:48 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 21 Feb 2003 21:48:09 +0000 (21:48 +0000)
PR c++/9727
* g++.dg/template/op1.C: New test.

From-SVN: r63245

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

index abff5ccaedd76d0c77c9fb295af65b2401b38063..ed4f626fb2d3d35f3d713d4b197c299958d18f83 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-21  Mark Mitchell  <mark@codesourcery.com>
+
+       PR c++/9727
+       * g++.dg/template/op1.C: New test.
+
 2003-02-21  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/8906
diff --git a/gcc/testsuite/g++.dg/template/op1.C b/gcc/testsuite/g++.dg/template/op1.C
new file mode 100644 (file)
index 0000000..7cc9c9e
--- /dev/null
@@ -0,0 +1,12 @@
+template <class T> struct X {
+    typedef int type;
+};
+
+template <class T> struct O {
+    struct I {
+        operator typename X<T>::type ();
+    };
+};
+
+template <class T>
+O<T>::I::operator typename X<T>::type () {}