This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Problems compiling KDE programs with GCC 3.3+
- From: Andreas Jaeger <aj at suse dot de>
- To: Gabriel Dos Reis <gdr at integrable-solutions dot net>, jason at redhat dot com
- Cc: gcc at gcc dot gnu dot org, dmuell at gmx dot net
- Date: Sun, 12 Jan 2003 21:53:55 +0100
- Subject: Re: Problems compiling KDE programs with GCC 3.3+
- References: <u8k7ha2r54.fsf@gromit.moeb><m3of6m8c7c.fsf@uniton.integrable-solutions.net>
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
> Andreas Jaeger <aj@suse.de> writes:
>
> | class QChar {
> | public:
> | QChar( char c );
> | QChar( unsigned char c );
> | };
> |
> | class QString
> | {
> | public:
> | QString( const char *str ); // deep copy
> |
> | QString &insert( unsigned int index, const QString & );
> | QString &insert( unsigned int index, QChar );
> | QString &prepend( const char* );
> | };
> |
> | inline QString &QString::prepend( const char* s )
> | { return insert(0,s); }
>
> [...]
>
> | kde.cc: In member function `QString& QString::prepend(const char*)':
> | kde.cc:18: error: call of overloaded `insert(int, const char*&)' is ambiguous
> | kde.cc:12: error: candidates are: QString& QString::insert(unsigned int, const
> | QString&)
> | kde.cc:13: error: QString& QString::insert(unsigned int, QChar)
>
> This is clearly bogus: There is no conversion sequence from 'const char*'
> to QChar. Please fill that in GNATS database as a regression.
It looks like the regression [1] was introduced with this patch:
http://gcc.gnu.org/ml/gcc-patches/2002-12/msg00181.html
Jason, can you look into this, please?
Thanks,
Andreas
2002-12-03 Jason Merrill <jason@redhat.com>
* call.c (build_user_type_conversion_1): Don't set ICS_BAD_FLAG on
an ambiguous conversion.
Andreas
Footnotes:
[1] I did a binary search with Janis' script (Thanks!) and this is
the only C++ patch during those dates and it even looks like it
applies ;-)
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj