bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #20263] DEC Alpha OSF/1 cc does not support comparing function poin


From: James Youngman
Subject: [bug #20263] DEC Alpha OSF/1 cc does not support comparing function pointer types with <= or >
Date: Tue, 26 Jun 2007 08:18:00 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-2)

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: address@hidden
             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/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]