c++/2460: sorry, not implemented: `overload' not supported by dump_expr

mwbuksas@lanl.gov mwbuksas@lanl.gov
Mon Apr 2 12:26:00 GMT 2001


>Number:         2460
>Category:       c++
>Synopsis:       sorry, not implemented: `overload' not supported by dump_expr
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          rejects-legal
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 02 12:26:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Buksas
>Release:        gcc version 2.95.2 19991024 (release)
>Organization:
>Environment:
i686-pc-linux-gnu/2.95.2/specs
Red Hat Linux 6.2
>Description:
gcc is confused by overloaded functions used as default
arguments in function definitions. The error suggests that
the ability to distinguish which version of the overloaded
function has been deliberately not implemented, but I
thought I'd bring it to your attention just in case.
>How-To-Repeat:
Compile the included file.
>Fix:
Leave out the defeault argument, or explicitly give the type information for the function argument. 
i.e.: replace the definition of the function with:
void b(void f(double)=(void (*)(double))a){ }
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="error_test.ii"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="error_test.ii"

IyAxICJlcnJvcl90ZXN0LmNjIgp2b2lkIGEoZG91YmxlIHYpIHsgfQp2b2lkIGEoaW50IHYpICAg
IHsgfQoKdm9pZCBiKHZvaWQgZihkb3VibGUpPWEpeyB9CiAKIAoKaW50IG1haW4oKXsgIGIoYSk7
IH0KCgo=



More information about the Gcc-prs mailing list