public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/24180]  New: [4.1 Regression] rejects union cast
@ 2005-10-03 21:12 pinskia at gcc dot gnu dot org
  2005-10-03 21:14 ` [Bug objc/24180] " pinskia at gcc dot gnu dot org
  2005-10-03 21:30 ` pinskia at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-03 21:12 UTC (permalink / raw)
  To: gcc-bugs

The following code is rejected even though it should not be:
#import <objc/Object.h>
union a { id g; };
void f(union a);
void g(Object *b)
{
  f((union a)b);
}
-----
Object* should be able to goto id without any troubles.


-- 
           Summary: [4.1 Regression] rejects union cast
           Product: gcc
           Version: 4.1.0
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: objc
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24180


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

* [Bug objc/24180] [4.1 Regression] rejects union cast
  2005-10-03 21:12 [Bug objc/24180] New: [4.1 Regression] rejects union cast pinskia at gcc dot gnu dot org
@ 2005-10-03 21:14 ` pinskia at gcc dot gnu dot org
  2005-10-03 21:30 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-03 21:14 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-03 21:14 -------
Forgot to say this shows up while compiling GNUStep.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24180


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

* [Bug objc/24180] [4.1 Regression] rejects union cast
  2005-10-03 21:12 [Bug objc/24180] New: [4.1 Regression] rejects union cast pinskia at gcc dot gnu dot org
  2005-10-03 21:14 ` [Bug objc/24180] " pinskia at gcc dot gnu dot org
@ 2005-10-03 21:30 ` pinskia at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-03 21:30 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-03 21:30 -------
The code is invalid, the related C testcase:
union a { void *g; };
void f(union a);
void g(int *b)
{
  f((union a)b);
}

Which is rejected everywhere.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24180


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

end of thread, other threads:[~2005-10-03 21:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-03 21:12 [Bug objc/24180] New: [4.1 Regression] rejects union cast pinskia at gcc dot gnu dot org
2005-10-03 21:14 ` [Bug objc/24180] " pinskia at gcc dot gnu dot org
2005-10-03 21:30 ` pinskia at gcc dot gnu dot org

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).