[ forwarded from http://bugs.debian.org/361441 ]

% cat ice.c 
typedef struct {
    int array_inputs;
} TNLcontext;

void f(void *);

void _tnl_upgrade_client_data (void *swtnl_context) {
    f(&((TNLcontext *) swtnl_context)->array_inputs);
    int is_writeable = 0;
    int *inputs = &((TNLcontext *) swtnl_context)->array_inputs;
    f(&is_writeable);
    *inputs = 0;
}

% gcc -c -O2 ice.c    
ice.c: In function '_tnl_upgrade_client_data':
ice.c:7: internal compiler error: in add_virtual_operand, at
tree-ssa-operands.c:1354
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

No problem with 4.1.

    Falk


-- 
           Summary: [4.2 regression] ICE in add_virtual_operand
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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

Reply via email to