EGCS 1.1a: unreasonable/incorrect casting restriction

Jason Merrill jason@cygnus.com
Thu Sep 3 13:25:00 GMT 1998


>>>>> Keith Hanlan <keithh@nortel.ca> writes:

 > A change has been made to the casting rules in EGCS 1.1a
 > since EGCS 1.03a. Previously, the following code compiled
 > without problem.

 > Now EGCS 1.1a complains:
 > /rbbvobs/xems/include/ovobject.hh:171: could not convert template argument `OVwDbFreeFieldValue(OVwFieldValue *)' to `void (*)(void *)'

 > Why not?

There are no implicit conversions between function types.  You'll need a
cast.

Jason



More information about the Gcc-bugs mailing list