This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/24180] New: [4.1 Regression] rejects union cast
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Oct 2005 21:12:28 -0000
- Subject: [Bug objc/24180] New: [4.1 Regression] rejects union cast
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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