bugGNUstep - Bugs: bug #9601, NSMutableSet gcc-3.3.4 compiler...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9601: NSMutableSet gcc-3.3.4 compiler error

Submitted by:  Chad Hardin <cehardin>
Submitted on:  Fri 09 Jul 2004 12:46:54 PM UTC  
 
Category: Base/FoundationSeverity: 2 - Minor
Item Group: BugStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Tue 24 Aug 2004 08:23:44 AM UTC, comment #1:

Presumably you have a +set method which returns void.
Arguably, the compiler should know that it should use the +set belonging top the NSSet class rather than your other +set method. That's perhaps an issue to take up with the gcc maintainers?
In any case, this is not a base library bug.

Richard Frith-Macdonald <CaS>
Project Member
Fri 09 Jul 2004 12:46:54 PM UTC, original submission:

For some reason I get the following compiler error:

error: void value not ignored as it ought to be

When doing a:

NSMutableSet *set;
set = [NSMutableSet set];

when using gcc verson 3.3.4 on i686 and gnustep cvs.

my workaround was to do a:

set = [NSMutableSet setWithCapacity:1];

which worked fine. Strange.

Chad Hardin <cehardin>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 3 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sun 22 May 2005 11:25:45 PM UTCFredKieferOpen/ClosedDeclined=>Closed
Tue 24 Aug 2004 08:23:44 AM UTCCaSStatusNone=>Invalid
  Open/ClosedOpen=>Declined

Back to the top


Powered by Savane 3.1-cleanup1