From mboxrd@z Thu Jan 1 00:00:00 1970 From: mwbuksas@lanl.gov To: gcc-gnats@gcc.gnu.org Subject: c++/2460: sorry, not implemented: `overload' not supported by dump_expr Date: Mon, 02 Apr 2001 12:26:00 -0000 Message-id: <20010402191635.28555.qmail@sourceware.cygnus.com> X-SW-Source: 2001-04/msg00020.html List-Id: >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=