OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [overload/] [ambig2.C] - Diff between revs 154 and 816

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 154 Rev 816
// Bug: g++ thought that the QChar overload was a viable but ambiguous
// Bug: g++ thought that the QChar overload was a viable but ambiguous
// candidate.  It isn't viable, because there's no conversion from const
// candidate.  It isn't viable, because there's no conversion from const
// char * to QChar.
// char * to QChar.
class QChar {
class QChar {
public:
public:
    QChar( char c );
    QChar( char c );
    QChar( unsigned char c );
    QChar( unsigned char c );
};
};
class QString
class QString
{
{
public:
public:
    QString( const char *str );                 // deep copy
    QString( const char *str );                 // deep copy
    QString    &insert( unsigned int index, const QString & );
    QString    &insert( unsigned int index, const QString & );
    QString    &insert( unsigned int index, QChar );
    QString    &insert( unsigned int index, QChar );
    QString    &prepend( const char* );
    QString    &prepend( const char* );
};
};
inline QString &QString::prepend( const char* s )
inline QString &QString::prepend( const char* s )
{ return insert(0,s); }
{ return insert(0,s); }
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.