This is the mail archive of the gcc@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: Problems compiling KDE programs with GCC 3.3+


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


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