This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc/24180] New: [4.1 Regression] rejects union cast


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]