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 >

Submitter:  James Youngman <jay>
Submitted:  Tue 26 Jun 2007 08:17:58 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  jay
Originator Name:  Nelson H. F. Beebe Open/Closed:  Closed
Release:  4.3.8 Fixed Release:  4.3.9
* Mandatory Fields

Add a New Comment Rich Markup
   

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

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2007-11-11 jay Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3.9
    2007-06-26 jay StatusNone Fixed
        ReleaseNone 4.3.8

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code