c++/232: ICE 980711 when function in class w/same name as another class
pmk@post.com
pmk@post.com
Mon May 22 23:36:00 GMT 2000
>Number: 232
>Category: c++
>Synopsis: ICE 980711 when function in class w/same name as another class
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: unassigned
>State: open
>Class: ice-on-illegal-code
>Submitter-Id: net
>Arrival-Date: Mon May 22 23:36:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: Peter Kelly <pmk@post.com>
>Release: gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
>Organization:
>Environment:
RedHat 6.2/kernel 2.2.14-5.0 i386 (PII)
>Description:
If I have two classes, one of which has a constructor with
the same name/paramaters as the other, and the parameters
are classes existing in another namespace, I get the following
message:
test.cpp:15: Internal compiler error 980711.
test.cpp:15: Please submit a full bug report to `egcs-bugs@egcs.cygnus.com'.
test.cpp:15: See <URL: http://egcs.cygnus.com/faq.html#bugreport > for details.
instead of a parse error (as the code is actually illegal).
This only happens when the parameters are in a different namespace.
>How-To-Repeat:
g++ -o test test.cpp
with the attached file
>Fix:
Can be worked around by using legal code :)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="test.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="test.cpp"
bmFtZXNwYWNlIE5TIHsKICBjbGFzcyBTb21lQ2xhc3MgewogICAgcHVibGljOgogICAgICBpbnQg
eDsKICB9Owp9CgpjbGFzcyBDbGFzczEgewpwdWJsaWM6CiAgQ2xhc3MxKE5TOjpTb21lQ2xhc3Mg
Yyk7Cn07CgpjbGFzcyBDbGFzczIgIHsKcHVibGljOgogIENsYXNzMShOUzo6U29tZUNsYXNzIGMp
Owp9OwogIAoKaW50IG1haW4oKSB7CiAgcmV0dXJuIDA7Cn0K
More information about the Gcc-prs
mailing list