This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/8702: [3.3 regression] matching of conversion operators


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]