$ cat t.c 
typedef struct 
{ 
    char chars[5]; 
} 
baz_t; 
 
extern baz_t * baz; 
 
extern void foo (baz_t); 
int 
bar (const baz_t * ls) 
{ 
    foo (ls == 0 ? *(&baz[0]) : *ls); 
} 
$ ./cc1 -O t.c -Wall 
 bar 
 
t.c: In function 'bar': 
t.c:13: internal compiler error: in gimplify_addr_expr, at gimplify.c:3246 
 
This is GCC 4.1.0 20050403 on (i686-pc-linux-gnu). 
The problem showed up in ncurses.

-- 
           Summary: [4.0/4.1 regression] ICE in gimplify_addr_expr
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: steven at gcc dot gnu dot org
                CC: aj at suse dot de,gcc-bugs at gcc dot gnu dot org


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

Reply via email to