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: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: gcc at gcc dot gnu dot org, dmuell at gmx dot net
- Date: 12 Jan 2003 19:17:27 +0100
- Subject: Re: Problems compiling KDE programs with GCC 3.3+
- Organization: Integrable Solutions
- References: <u8k7ha2r54.fsf@gromit.moeb>
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.
-- Gaby