Bug 7808 - Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to 'id<Protocol2>'
Summary: Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to ...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: objc (show other bugs)
Version: 3.3
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-02 03:36 UTC by Nicola Pero
Modified: 2003-07-25 17:33 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
nico.m (183 bytes, application/octet-stream)
2003-05-21 15:17 UTC, Nicola Pero
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola Pero 2002-09-02 03:36:01 UTC
The compiler seems to be ignoring casts from 'id<Protocol>'
to 'id', and from 'id<Protocol1>' to 'id<Protocol2>'.

It's a regression: previous compilers (eg 2.95 and 2.91.66)
did the cast properly.

Release:
GCC 3.3 (also reported in 3.2)

How-To-Repeat:
Compile the attached testcase - no warnings should be 
generated.

Under 3.3 (and, I was told, under 3.2) spurious warnings are
generated instead because the compiler seems to be ignoring
the casts
Comment 1 Nicola Pero 2002-09-17 07:28:19 UTC
State-Changed-From-To: open->closed
State-Changed-Why: Fixed on GCC 3.3 CVS