public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/47832] New: [4.6 Regression] ObjC errors on structures with flexible data members
@ 2011-02-21 10:33 jakub at gcc dot gnu.org
  2011-02-21 10:41 ` [Bug objc/47832] " nicola at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-02-21 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ObjC errors on structures with
                    flexible data members
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: objc
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: nicola@gcc.gnu.org, iains@gcc.gnu.org


struct S
{
  int s;
  unsigned char *t[];
};
@interface T
{
  struct S *u;
};
@end
@implementation T
{
};
@end

used to compile just fine in 4.5, but 4.6 rejects this
rh678928.m:14:1: error: instance variable has unknown size

I don't know ObjC enough to say whether this is intentional or not (and whether
ObjC standard actually talks about flexible array members at all).  If flexible
array members should be allowed, then it would just need to make sure the
element type is complete, rather than the array type.

This breaks build of raidem, for original testcase see
http://bugzilla.redhat.com/678928


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

end of thread, other threads:[~2011-03-01  8:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-21 10:33 [Bug objc/47832] New: [4.6 Regression] ObjC errors on structures with flexible data members jakub at gcc dot gnu.org
2011-02-21 10:41 ` [Bug objc/47832] " nicola at gcc dot gnu.org
2011-02-21 10:45 ` nicola at gcc dot gnu.org
2011-02-21 12:07 ` jakub at gcc dot gnu.org
2011-02-21 13:23 ` jakub at gcc dot gnu.org
2011-02-21 14:35 ` nicola at gcc dot gnu.org
2011-02-22 19:23 ` nicola at gcc dot gnu.org
2011-03-01  8:10 ` mrs at gcc dot gnu.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).