This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8702: [3.3 regression] matching of conversion operators
- From: Craig Rodrigues <rodrigc at attbi dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 26 Nov 2002 16:56:04 -0000
- Subject: Re: c++/8702: [3.3 regression] matching of conversion operators
- Reply-to: Craig Rodrigues <rodrigc at attbi dot com>
The following reply was made to PR c++/8702; it has been noted by GNATS.
From: Craig Rodrigues <rodrigc@attbi.com>
To: bangerth@dealii.org, gcc-bugs@gcc.gnu.org, gcc-prs@gcc.gnu.org,
nobody@gcc.gnu.org, rodrigc@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Cc:
Subject: Re: c++/8702: [3.3 regression] matching of conversion operators
Date: Tue, 26 Nov 2002 11:47:47 -0500
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