bugGNUstep - Bugs: bug #27612, header problem with appkit on gcc...

Group
 
 

bug #27612: header problem with appkit on gcc 2.95

Submitter:  Riccardo Mottola <rmottola>
Submitted:  Mon 05 Oct 2009 11:29:22 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Wont Fix
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 06 Oct 2009 11:33:21 AM UTC, comment #3: 

Ok. I just wanted to be sure about what it was. I long searched for the problem inside the app before doing the testcase.

I don't see it possible to cast, I htink the workarond for Richard is a viable solution. Thank you.

Riccardo Mottola <rmottola>
Group Member
Tue 06 Oct 2009 08:39:24 AM UTC, comment #2: 

Agreed ... this is just a compiler bug and I'm afraid you just have to work around it by not calling the NSSet +set method. (Use [[NSSet new] autorelease]

Richard Frith-Macdonald <CaS>
Group Member
Tue 06 Oct 2009 12:00:43 AM UTC, comment #1: 

nothing gnustep can really do about this, it looks like your compiler is confusing -[NSColor set] and +[NSSet set],

you can try and avoid including both NSColor.h and NSSet.h, avoid +set, or switch to an unaffected compiler :/,

i'm not aware of any way to work around it anyhow, (with instance methods you can do some casting i believe, but what are you going to cast the NSSet class to? ...)

matt rice <ratmice>
Group Member
Mon 05 Oct 2009 11:29:22 PM UTC, original submission:  

I verified on two separate gcc 2.95 machines that there is a problem with NSSet and the AppKit header.

IN the attached example, if the AppKit header is included, the example will fail to compile, if it is not included it will compile.

 Compiling file main.m ...
main.m: In function `main':
main.m:34: void value not ignored as it ought to be

Riccardo Mottola <rmottola>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #18818:  main.m added by rmottola (1KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by CaS (Posted a comment)
  • -email is unavailable- added by ratmice (Posted a comment)
  • -email is unavailable- added by rmottola (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-10-06 CaS StatusNone Wont Fix
        Open/ClosedOpen Closed
    2009-10-05 rmottola Attached File- Added main.m, #18818

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code