[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Errors when compiling with GCC 4.1
From: |
Gregory John Casamento |
Subject: |
Re: Errors when compiling with GCC 4.1 |
Date: |
Tue, 4 Oct 2005 18:31:38 -0700 (PDT) |
Richard,
--- Richard Frith-Macdonald <address@hidden> wrote:
....
> It should have been matching with the 'id' part of the union.
> My understanding of the language is that you should be able to assign any
> object to a variable of type 'id' ... so I'd be inclined to call it a
> compiler bug.
> I guess we might be able to work around it by explicitly casting the
> NSDictionary to be an id first ... (GSIMapKey)(id)attrs ... but that's not
> very nice.
It seems to need the *precise* type now, AFAICT. I'm not sure it's a compiler
bug.
Hopefully, someone more familiar than I with the GCC internals can comment on
this.
Later, GJC
Gregory John Casamento
-- CEO/President Open Logic Corp. (A MD Corp.)
## Maintainer of Gorm (IB Equiv.) for GNUstep.