This is the mail archive of the
gcc-bugs@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: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rodrigc at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
- Date: Tue, 26 Nov 2002 11:47:47 -0500
- Subject: Re: c++/8702: [3.3 regression] matching of conversion operators
- References: <20021125171554.15402.qmail@sources.redhat.com>
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