aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-02-21 21:48:09 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-02-21 21:48:09 +0000
commit19df1edfbe0c64fb1664d65a418fb757de9fb53c (patch)
tree836e1f337c0fac0aa5fb4938bddb01d20c633ef1
parenta93d1ba239647d6a1384e0a1f98005aff36465d8 (diff)
downloadgcc-19df1edfbe0c64fb1664d65a418fb757de9fb53c.zip
gcc-19df1edfbe0c64fb1664d65a418fb757de9fb53c.tar.gz
gcc-19df1edfbe0c64fb1664d65a418fb757de9fb53c.tar.bz2
re PR c++/9727 (ICE in pushclass() with template and conversion operator)
PR c++/9727 * g++.dg/template/op1.C: New test. From-SVN: r63245
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/g++.dg/template/op1.C12
2 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index abff5cc..ed4f626 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,5 +1,10 @@
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
* g++.dg/template/nested2.C: New test.
diff --git a/gcc/testsuite/g++.dg/template/op1.C b/gcc/testsuite/g++.dg/template/op1.C
new file mode 100644
index 0000000..7cc9c9e
--- /dev/null
+++ b/gcc/testsuite/g++.dg/template/op1.C
@@ -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 () {}