c++/5278: g++ 3.0.2 wrong error diagnostic
relf@os2.ru
relf@os2.ru
Fri Jan 4 13:06:00 GMT 2002
>Number: 5278
>Category: c++
>Synopsis: g++ 3.0.2 wrong error diagnostic
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jan 04 13:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Max Alekseyev
>Release: 3.0.2
>Organization:
>Environment:
OS/2 Warp 4.52
>Description:
g++ duplicates function-candidate in error report
dup_bug.cpp: In function `int main()':
dup_bug.cpp:21: no match for `int * C3<C1>&' operator
dup_bug.cpp:6: candidates are: int operator*(int, const C1&)
dup_bug.cpp:6: int operator*(int, const C1&)
>How-To-Repeat:
g++ dup_bug.cpp
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="dup_bug.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="dup_bug.cpp"
Y2xhc3MgQzENCnsNCnB1YmxpYzoNCiAgICBpbnQgeDsNCiAgICBDMSgpIHsgeCA9IDA7IH0NCiAg
ICBmcmllbmQgaW50IG9wZXJhdG9yICogKGludCBrLCBjb25zdCBDMSYgeSkgeyByZXR1cm4gayp5
Lng7IH0NCn07DQoNCnRlbXBsYXRlPGNsYXNzIFQ+DQoJY2xhc3MgQzINCnsgfTsNCg0KdGVtcGxh
dGU8Y2xhc3MgUz4NCgljbGFzcyBDMyA6IHB1YmxpYyBDMjxTPg0KeyB9Ow0KDQoNCmludCBtYWlu
KCkNCnsNCiAgICBDMzxDMT4gdTsNCiAgICByZXR1cm4gMip1Ow0KfQ0K
More information about the Gcc-bugs
mailing list