c++/8702: [3.3 regression] matching of conversion operators
Craig Rodrigues
rodrigc@attbi.com
Tue Nov 26 09:46:00 GMT 2002
On Mon, Nov 25, 2002 at 05:15:54PM -0000, bangerth@dealii.org wrote:
> True. It's a regression on mainline. Here's a reduced
> testcase:
> ------------------------------------
> template <typename X> struct C1{};
>
> template <typename X>
> struct C2 {
> template<typename Y> operator C1<Y>();
> template<typename Y> operator C2<Y>();
> };
>
>
> template<typename X> template<typename Y>
> C2<X>::operator C1<Y>()
> {
> return C1<Y>();
> }
> ---------------------------------
That's a very good testcase. It isolates the problem well.
Can you prepare a patch to add this to the GCC testsuite?
I think it should go under: gcc/testsuite/g++.dg/template/
If you prefer, I can create a patch and submit it to gcc-patches@gcc.gnu.org.
Thanks.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@attbi.com
More information about the Gcc-bugs
mailing list