[Bug c++/17829] New: wrong error: call of overloaded function is ambiguous
micis at gmx dot de
gcc-bugzilla@gcc.gnu.org
Mon Oct 4 12:05:00 GMT 2004
With snapshot gcc-4.0-20041003 I get an error (see below):
"call of overloaded is ambiguous"
while only one function definition is present.
With gcc33, gcc34 and the previous snapshot gcc-4.0-20040926 this program
compiles without error.
Michael Cieslinski
src.ii: In static member function `static QFontEngine* QFontDatabase::findFont
(QFont::Script, const QFontPrivate*, const QFontDef&, int)':
src.ii:48587: error: call of overloaded `parseFontName(const QString&,
QString&, QString&)' is ambiguous
src.ii:28700: note: candidates are: static void QFontDatabase::parseFontName
(const QString&, QString&, QString&)
src.ii:48571: note: void parseFontName(const QString&,
QString&, QString&)
g++40 -c -O2 -o out.o src.ii -v
Reading specs from /usr/local/gcc40/lib/gcc/powerpc-unknown-linux-
gnu/4.0.0/specs
Configured with: ../gcc40/configure --prefix=/usr/local/gcc40 --program-
suffix=40 --with-cpu=G5 --enable-altivec --enable-languages=c,c++ --enable-
checking
Thread model: posix
gcc version 4.0.0 20041003 (experimental)
/usr/local/gcc40/libexec/gcc/powerpc-unknown-linux-gnu/4.0.0/cc1plus -
fpreprocessed src.ii -quiet -dumpbase src.ii -mcpu=G5 -auxbase-strip out.o -O2 -
version -o /tmp/ccd0gsRe.s
GNU C++ version 4.0.0 20041003 (experimental) (powerpc-unknown-linux-gnu)
compiled by GNU C version 4.0.0 20041003 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
as -mpower4 -maltivec -many -V -Qy -o out.o /tmp/ccd0gsRe.s
GNU assembler version 2.15.90 (ppc-redhat-linux) using BFD version 2.15.90
20040225
--
Summary: wrong error: call of overloaded function is ambiguous
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: micis at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux-gnu
GCC host triplet: powerpc-linux-gnu
GCC target triplet: powerpc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17829
More information about the Gcc-bugs
mailing list