--- Comment #6 from jongampark at sbcglobal dot net 2008-05-21 14:57
---
(In reply to comment #2)
> Try using -Wstrict-selector-match and see what you get.
>
The gcc 3.4.5 came from the MingW doesn't recognize the flag.
And even without it, it warns multiply decla
--- Comment #5 from jongampark at sbcglobal dot net 2008-05-21 04:40
---
I tried it on my MacBook with 4.0.1 version of gcc. ( provided by Apple Inc. )
- (void)add:(id)valObj
{
float temp_value;
// If I cast this way
temp_value = (float)[valObj value]; // I changed
--- Comment #4 from jongampark at sbcglobal dot net 2008-05-21 03:00
---
(In reply to comment #1)
> Actually I don't think this is a bug. What is happening is the id is a
> generic
> class type so the compiler needs to decide at compile time what the type is
> be
--- Comment #3 from jongampark at sbcglobal dot net 2008-05-21 02:57
---
(In reply to comment #2)
> Try using -Wstrict-selector-match and see what you get.
>
I will try that. Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36283
n a class method, pointed by id, returns float, it
returns wrong value
Product: gcc
Version: 3.4.5
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org