public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* objc/7808: Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to 'id<Protocol2>'
@ 2002-09-02  3:36 Nicola Pero
  0 siblings, 0 replies; 2+ messages in thread
From: Nicola Pero @ 2002-09-02  3:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7808
>Category:       objc
>Synopsis:       Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to 'id<Protocol2>'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 02 03:36:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Nicola Pero <nicola@brainstorm.co.uk>
>Release:        GCC 3.3 (also reported in 3.2)
>Organization:
>Environment:

>Description:
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.
>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
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="nico.m"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="nico.m"

I2luY2x1ZGUgPG9iamMvb2JqYy5oPgoKQGludGVyZmFjZSBHZW5lcmljCi0gKGlkKSBnOwpAZW5k
CgpAcHJvdG9jb2wgUHJvdG9jb2wxCi0gKHZvaWQpIHAxOwpAZW5kCgpAcHJvdG9jb2wgUHJvdG9j
b2wyCi0gKHZvaWQpIHAyOwpAZW5kCgppbnQgbWFpbiAodm9pZCkKewogIGlkPFByb3RvY29sMT4g
cCA9IG5pbDsKCiAgWyhpZClwIGddOyAgICAgIC8qIFNob3VsZCBnZW5lcmF0ZSBubyB3YXJuaW5n
cyEgKi8KICBbKGlkPFByb3RvY29sMj4pcCBwMl07IC8qIFNob3VsZCBnZW5lcmF0ZSBubyB3YXJu
aW5ncyEgKi8KCiAgcmV0dXJuIDA7Cn0K


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: objc/7808: Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to 'id<Protocol2>'
@ 2002-09-17  7:28 nicola
  0 siblings, 0 replies; 2+ messages in thread
From: nicola @ 2002-09-17  7:28 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nicola, nobody

Synopsis: Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to 'id<Protocol2>'

State-Changed-From-To: open->closed
State-Changed-By: nicola
State-Changed-When: Tue Sep 17 07:28:19 2002
State-Changed-Why:
    Fixed on GCC 3.3 CVS

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7808


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-09-17 14:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-02  3:36 objc/7808: Compiler ignores cast from 'id<Protocol>' to 'id' or from 'id<Protocol1>' to 'id<Protocol2>' Nicola Pero
2002-09-17  7:28 nicola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).