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



  In message <u9yasgyvuf.fsf@yorick.cygnus.com>you write:
  > >>>>> 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 AR
  > RAY_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).
OK.  Thanks.  That's precisely what I needed to know.

jeff


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