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