mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
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
This commit is contained in:
committed by
Mark Mitchell
parent
a93d1ba239
commit
19df1edfbe
@@ -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
|
||||
|
||||
12
gcc/testsuite/g++.dg/template/op1.C
Normal file
12
gcc/testsuite/g++.dg/template/op1.C
Normal file
@@ -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 () {}
|
||||
Reference in New Issue
Block a user