URL:
  <http://savannah.gnu.org/bugs/?20263>

                 Summary: DEC Alpha OSF/1 cc does not support comparing
function pointer types with <= or >
                 Project: findutils
            Submitted by: jay
            Submitted on: Tuesday 06/26/2007 at 08:17
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: jay
         Originator Name: Nelson H. F. Beebe
        Originator Email: [EMAIL PROTECTED]
             Open/Closed: Open
         Discussion Lock: Any
                 Release: None
           Fixed Release: None

    _______________________________________________________

Details:

In ISO C, function pointers can be compared for equality with == but not the
< > operators are not defined for them.   Therefore this operation is not
allowed by the native C compiler on DEC Alpha OSF/1:

cc -std -DHAVE_CONFIG_H -I. -I.. -I../gnulib/lib -I../lib -I../gnulib/lib
-I../intl \
       -DLOCALEDIR=\"/usr/local/share/locale\"  -I/usr/local/include  -ieee
\
       -I/usr/local/include -c tree.c
[...]
cc: Error: tree.c, line 980: In this statement, "pl1->fn" and "pl2->fn"
cannot be compared with a relational operator. (norelational)
     assert(pl1->fn <= pl2->fn);
------^
cc: Error: tree.c, line 995: In this statement, "pc1->fn" and "pc2->fn"
cannot be compared with a relational operator. (norelational)
 else if (pc1->fn > pc2->fn)
-----------^
make[3]: *** [tree.o] Error 1




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?20263>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



_______________________________________________
Bug-findutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-findutils

Reply via email to