g++ bug effecting egcs-1.1 release
Jason Merrill
jason@cygnus.com
Sun Aug 23 00:57:00 GMT 1998
>>>>> Jeffrey A Law <law@cygnus.com> writes:
> g++ j.C -fno-for-scope
> j.C: In method `void SSTRINGS::sort()':
> j.C:326: no matching function for call to `ARRAY::sort (int ()(ARRAY_OBJ *, ARRAY_OBJ *))'
> j.C:270: candidates are: ARRAY::sort(int (*)(const ARRAY_OBJ *, const ARRAY_OBJ *))
There are no implicit conversions between function pointer types in C++.
g++ used to be much more lax about enforcing that rule. The code is in
error (but it should be easy to fix).
Jason
More information about the Gcc-bugs
mailing list