[Bug c/13994] New: Rejects valid code on GNU extension

bonzini at gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Feb 3 09:10:00 GMT 2004


This is rejected even though a.c is a valid lvalue. 
 
I have a patch that fixes this and PR/11658. 
 
struct s { char c[1]; }; 
struct s a; 
 
char *bug_cond(void) { return (a.c ? : 0); }

-- 
           Summary: Rejects valid code on GNU extension
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: c
        AssignedTo: bonzini at gnu dot org
        ReportedBy: bonzini at gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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



More information about the Gcc-bugs mailing list