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]
Other format: [Raw text]

c++/5293: g++ produces weird error on legal code



>Number:         5293
>Category:       c++
>Synopsis:       g++ produces weird error on legal code
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 06 11:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Max Alekseyev
>Release:        g++ 3.0.2
>Organization:
>Environment:
OS/2 Warp 4.52
>Description:
bbbb.cpp: In function `any_class& operator*=(any_class&, const any_class&)
   [with any_class = C1]':
bbbb.cpp:22:   instantiated from here
bbbb.cpp:16: could not convert `C1::operator=((&C1::operator*((+q))))' to `C1&'
>How-To-Repeat:
g++ bbbb.cpp
>Fix:

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

Y2xhc3MgQzENCnsNCnB1YmxpYzoNCiAgICBDMSBvcGVyYXRvciA9IChjb25zdCBDMSYpIHsgcmV0
dXJuICp0aGlzOyB9DQogICAgQzEgb3BlcmF0b3IgKiAoY29uc3QgQzEmKSBjb25zdCAgeyByZXR1
cm4gKnRoaXM7IH0NCn07DQoNCnRlbXBsYXRlPGludCBjPiAgDQogICAgY2xhc3MgQzINCnsNCnB1
YmxpYzoNCiAgICBDMSBmOw0KfTsNCg0KdGVtcGxhdGU8Y2xhc3MgYW55X2NsYXNzPg0KYW55X2Ns
YXNzJiBvcGVyYXRvciAqPSAoYW55X2NsYXNzJiBwLCBjb25zdCBhbnlfY2xhc3MmIHEpIHsgcmV0
dXJuIHA9cCpxOyB9DQoNCmludCBtYWluKCkNCnsNCiAgICBDMSBtMTsNCiAgICBDMjwzPiBtMjsN
CiAgICBtMi5mICo9IG0xOw0KICAgIHJldHVybiAwOw0KfQ0K


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