This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8856: g++ accepts invalid conversion-function-id
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: "Martin v. Löwis" <martin at v dot loewis dot de>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 9 Dec 2002 21:56:03 -0600 (CST)
- Subject: Re: c++/8856: g++ accepts invalid conversion-function-id
> While trying to analyse whether there really is an ambiguity I found
> these bugs. You could probably add the demangler bug as well;
>
> _ZN1AIfEcvT_IiEEv
>
> should demangle as A<float>::operator int() (or perhaps
> A<float>::operator T()[T=int]), not as A<float>::operator float<int>().
That's a funny concept: take some reverse engineering (demangling) that
generates something bogus, and feed this nonsense back into the loop (the
compiler). It's really surprising that it works here -- let's call it a
two-way bug :-)
One will rarely find this kind of synchronisation between two bugs, as if
the authors of the demangler and the parser had conspired...
Cheers
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth