This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/4057: ambiguity of a call not reported



>Number:         4057
>Category:       c++
>Synopsis:       ambiguity of a call not reported
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Sat Aug 18 05:46:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     jacek@idoox.com
>Release:        current snapshot on the compile web page
>Organization:
>Environment:

>Description:
When there are two choices for one call, the compiler complains it's ambiguous.
When I added a third choice, the compiler stopped complaining.
Try to comment out one of the lines marked as try to comment out.
>How-To-Repeat:
just try to compile the attached file. It succeeds and that's IMHO wrong.
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="ambiguity.cc"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="ambiguity.cc"

Y2xhc3MgYjsKCmNsYXNzIGEgewpwdWJsaWM6CglhKGImKSB7IDsgfTsgLy8gdHJ5IGNvbW1lbnRp
bmcgdGhpcyBvdXQKfTsKCmNsYXNzIGMgewp9OwoKY2xhc3MgYiB7CnB1YmxpYzoKCW9wZXJhdG9y
IGEoKSB7IDsgfTsgLy8gdHJ5IGNvbW1lbnRpbmcgdGhpcyBvdXQKCW9wZXJhdG9yIGMoKSB7IDsg
fTsgLy8gdHJ5IGNvbW1lbnRpbmcgdGhpcyBvdXQKfTsKCgp2b2lkIGZvbyhhKSB7IDsgfQp2b2lk
IGZvbyhjKSB7IDsgfQoKaW50IG1haW4oKQp7CgliIGJhcjsKCWZvbyhiYXIpOyAvLyBpcyBhbWJp
Z3VvdXMKCXJldHVybiAwOwp9Cg==


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]