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:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  James Youngman <jay>
Originator Name:  Nelson H. F. Beebe Open/Closed:  Closed
Release:  4.3.8 Fixed 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 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)
  •  

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

    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.5