This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: g++ bug effecting egcs-1.1 release


>>>>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]