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: Martin v. Löwis <martin at v dot loewis dot de>
- To: <bangerth at dealii dot org>,<gcc-bugs at gcc dot gnu dot org>,<loewis at informatik dot hu-berlin dot de>
- Date: Mon, 9 Dec 2002 21:57:17 +0100
- Subject: Re: c++/8856: g++ accepts invalid conversion-function-id
- References: <20021209191755.11585.qmail@sources.redhat.com>
> Confirmed. Rather funny. Martin, how do you find such constructs?
This one was discovered as a side effect of a discussion on the C++ ABI
list, where Steve Adamczyk suggested that the mangling might be
ambiguous, in
http://www.codesourcery.com/lists?2:mss:1579:200212:lncppafbiealmdbfoaon
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>().
As for Steve's original problem: I don't believe there is an ambiguity
in the mangling.
Regards,
Martin