bugfindutils - Bugs: bug #20263, DEC Alpha OSF/1 cc does not...

 
 

bug #20263: DEC Alpha OSF/1 cc does not support comparing function pointer types with <= or >

Submitted by:  James Youngman <jay>
Submitted on:  Tue 26 Jun 2007 08:17:58 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: James Youngman <jay>
Originator Name: Nelson H. F. BeebeOpen/Closed: Closed
Release: 4.3.8Fixed Release: 4.3.9

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 26 Jun 2007 08:17:58 AM UTC, original submission:

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

James Youngman <jay>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by jay (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 11 Nov 2007 07:44:32 PM UTCjayOpen/ClosedOpen=>Closed
      Fixed ReleaseNone=>4.3.9
    Tue 26 Jun 2007 08:58:18 AM UTCjayStatusNone=>Fixed
      ReleaseNone=>4.3.8

    Back to the top


    Powered by Savane 3.1-cleanup1