From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10745 invoked by alias); 17 Apr 2002 14:46:07 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 10712 invoked by uid 71); 17 Apr 2002 14:46:03 -0000 Resent-Date: 17 Apr 2002 14:46:03 -0000 Resent-Message-ID: <20020417144603.10711.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-To: nobody@gcc.gnu.org Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, schalkc@ntaba.co.za Received:(qmail 7246 invoked by uid 61); 17 Apr 2002 14:40:09 -0000 Message-Id:<20020417144009.7245.qmail@sources.redhat.com> Date: Wed, 17 Apr 2002 07:46:00 -0000 From: schalkc@ntaba.co.za Reply-To: schalkc@ntaba.co.za To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version:gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c++/6337: Fails to distinguish between operator[](int) and operator T*(). X-SW-Source: 2002-04/txt/msg00891.txt.bz2 List-Id: >Number: 6337 >Category: c++ >Synopsis: Fails to distinguish between operator[](int) and operator T*(). >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Apr 17 07:46:02 PDT 2002 >Closed-Date: >Last-Modified: >Originator: schalkc@ntaba.co.za >Release: gcc version 3.1 20020205 (Red Hat Linux Rawhide 3.1-0.21) >Organization: >Environment: Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --host=i386-redhat-linux --with-system-zlib >Description: Try to compile the program, will fail with "because worst conversion for the former is better than worst conversion for the latter" message. >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: text/x-c++src; name="test-operator.cpp" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test-operator.cpp" I2luY2x1ZGUgPGlvc3RyZWFtPgoKc3RydWN0IEEKewoJaW50IHhbMTBdOwoJb3BlcmF0b3IgaW50 KiAoKSB7cmV0dXJuIHg7fQoJaW50JiBvcGVyYXRvciBbXSAodW5zaWduZWQgaW50IGkpIHtyZXR1 cm4geFtpXTt9Cn07CgptYWluKCkKewoJQSBhOwoJKihzdGF0aWNfY2FzdDxpbnQqPihhKSkgPSA1 OwoJYVsxXT0gMTA7CgoJc3RkOjpjb3V0IDw8ICJbMF09PSIgPDwgYVswXSA8PCAiLCBbMV09PSIg PDwgYVsxXSA8PCBzdGQ6OmVuZGw7CglyZXR1cm4gMDsKfQo=