[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#440483: marked as done (gcc-snapshot: ambiguous operator==)



Your message dated Sat, 20 Oct 2007 13:17:12 +0000
with message-id <E1IjECW-0003zK-PG@ries.debian.org>
and subject line Bug#440483: fixed in gcc-snapshot 20071020-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gcc-snapshot
Version: 20070829-1
Severity: normal

The following code compiles with g++ 4.2 but fails with "ISO C++ says
that these are ambiguous, even though the worst conversion for the
first is better than the worst conversion for the second" when
compiling with latest gcc-snapshot. If I remove the QString include it
compiles with gcc-snapshot.

// Flags needed: -I/usr/include/qt4/ -lQtCore
#include <QtCore/QString>
#include <QtCore/QByteArray>

int main()
{
  if (QByteArray() == QByteArray())
    return 1;
  return 0;
}


Below is a simpler example that illustrates the same problem.

struct A {
  A(const struct B&) {}
};

struct B {
  bool operator==(const A&) const { return true; }
};

bool operator==(const B&, const B&) {
  return false;
}

int main()
{
  if (B() == B())
    return 1;
  return 0;
}


Is this a regression in gcc or is it something that must be fixed by
making A's constructor explicit?

// Erik

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-1-k7 (SMP w/1 CPU core)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=sv_SE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-snapshot depends on:
ii  binutils                2.18-1           The GNU assembler, linker and bina
ii  lib64gcc1               1:4.2.1-4        GCC support library (64bit)
ii  libasound2              1.0.14a-2        ALSA library
ii  libatk1.0-0             1.18.0-2         The ATK accessibility toolkit
ii  libc6                   2.6.1-1+b1       GNU C Library: Shared libraries
ii  libc6-amd64             2.6.1-1+b1       GNU C Library: 64bit Shared librar
ii  libc6-dev               2.6.1-1+b1       GNU C Library: Development Librari
ii  libcairo2               1.4.10-1         The Cairo 2D vector graphics libra
ii  libfontconfig1          2.4.2-1.2        generic font configuration library
ii  libfreetype6            2.3.5-1+b1       FreeType 2 font engine, shared lib
ii  libgcc1                 1:4.2.1-4        GCC support library
ii  libgcj-bc               4.2.1-4          Link time only library for use wit
ii  libglib2.0-0            2.14.0-2         The GLib library of C routines
ii  libgmp3c2               2:4.2.1+dfsg-5   Multiprecision arithmetic library
ii  libgtk2.0-0             2.10.13-1        The GTK+ graphical user interface 
ii  libice6                 2:1.0.4-1        X11 Inter-Client Exchange library
ii  libmpfr1ldbl            2.3.0.dfsg.1-2   multiple precision floating-point 
ii  libpango1.0-0           1.16.5-1         Layout and rendering of internatio
ii  libpng12-0              1.2.15~beta5-2   PNG library - runtime
ii  libsm6                  2:1.0.3-1+b1     X11 Session Management library
ii  libx11-6                2:1.0.3-7        X11 client-side library
ii  libxcursor1             1:1.1.9-1        X cursor management library
ii  libxext6                1:1.0.3-2        X11 miscellaneous extension librar
ii  libxfixes3              1:4.0.3-2        X11 miscellaneous 'fixes' extensio
ii  libxi6                  2:1.1.2-1        X11 Input extension library
ii  libxinerama1            1:1.0.2-1        X11 Xinerama extension library
ii  libxrandr2              2:1.2.1-1        X11 RandR extension library
ii  libxrender1             1:0.9.3-1        X Rendering Extension client libra
ii  libxtst6                2:1.0.3-1        X11 Testing -- Resource extension 
ii  zlib1g                  1:1.2.3.3.dfsg-5 compression library - runtime

gcc-snapshot recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
Source: gcc-snapshot
Source-Version: 20071020-1

We believe that the bug you reported is fixed in the latest version of
gcc-snapshot, which is due to be installed in the Debian FTP archive:

gcc-snapshot_20071020-1.diff.gz
  to pool/main/g/gcc-snapshot/gcc-snapshot_20071020-1.diff.gz
gcc-snapshot_20071020-1.dsc
  to pool/main/g/gcc-snapshot/gcc-snapshot_20071020-1.dsc
gcc-snapshot_20071020-1_amd64.deb
  to pool/main/g/gcc-snapshot/gcc-snapshot_20071020-1_amd64.deb
gcc-snapshot_20071020.orig.tar.gz
  to pool/main/g/gcc-snapshot/gcc-snapshot_20071020.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 440483@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Martin Michlmayr <tbm@cyrius.com> (supplier of updated gcc-snapshot package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 20 Oct 2007 09:44:53 +0200
Source: gcc-snapshot
Binary: gcc-snapshot
Architecture: source amd64
Version: 20071020-1
Distribution: unstable
Urgency: low
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Martin Michlmayr <tbm@cyrius.com>
Description: 
 gcc-snapshot - A SNAPSHOT of the GNU Compiler Collection
Closes: 440378 440483
Changes: 
 gcc-snapshot (20071020-1) unstable; urgency=low
 .
   * Sync with Ubuntu's gcc-snapshot package (20071019-0ubuntu1).
   * SVN 20071020, taken from the trunk, revision 129504.
      - c++: ambiguous operator== error (closes: #440483).
      - PR middle-end/33273: unrecognizable insn: in extract_insn, at
        recog.c:1990 (closes: #440378).
   * Revert libstdc++ to revision 129434 because the recent removal of
     pre-ISO C++ items from include/backwards is controversial, see
     http://gcc.gnu.org/ml/gcc/2007-10/msg00244.html
 .
 gcc-snapshot (20071019-0ubuntu1) hardy; urgency=low
 .
   * Update to SVN 20071019 from the trunk.
   * Update debian patches to the current trunk.
Files: 
 d16d56e2759f1d094361799e13f1983c 2520 devel optional gcc-snapshot_20071020-1.dsc
 4adb36ac9194c99eb0ec4b84f80b9444 53520810 devel optional gcc-snapshot_20071020.orig.tar.gz
 724258a2b68ccbcbe5fa4b0de2c4fb24 236928 devel optional gcc-snapshot_20071020-1.diff.gz
 614244757ad0c2a77cb636cc65bc055e 87067158 devel extra gcc-snapshot_20071020-1_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHGfhgKb5dImj9VJ8RApi8AKCjRpuji1eN/8NqJTny6hGHSCWslQCeN9sK
SntEaxKb/zBpY3ENjl7DBXk=
=F2Cv
-----END PGP SIGNATURE-----



--- End Message ---

Reply to: