public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/6337: Fails to distinguish between operator[](int) and operator T*().
@ 2002-04-17 7:46 schalkc
0 siblings, 0 replies; 2+ messages in thread
From: schalkc @ 2002-04-17 7:46 UTC (permalink / raw)
To: gcc-gnats
>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=
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: c++/6337: Fails to distinguish between operator[](int) and operator T*().
@ 2002-09-15 5:29 nathan
0 siblings, 0 replies; 2+ messages in thread
From: nathan @ 2002-09-15 5:29 UTC (permalink / raw)
To: gcc-bugs, gcc-prs, nobody, schalkc
Synopsis: Fails to distinguish between operator[](int) and operator T*().
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sun Sep 15 05:29:22 2002
State-Changed-Why:
not a bug. The choice is between
int & operator[] (1, a.operator int *());
int & a.operator[] (unsigned (1))
which are ambiguous
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6337
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-09-15 12:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 7:46 c++/6337: Fails to distinguish between operator[](int) and operator T*() schalkc
2002-09-15 5:29 nathan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).