Bug ID: 77989
           Summary: -O3 causes verify_gimple fail
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 39814
C source code

The attached C code, when compiled by gcc trunk dated 20161014 and 
compiler flag -O3, does this:

tar.c: In function ‘tar_wr’:
tar.c:554:1: error: invalid address operand in MEM_REF
MEM[(char *)&MEM[(void *)&hdblk + 156B]];

tar.c:554:1: error: invalid first operand of MEM_REF
&MEM[(void *)&hdblk + 156B]
tar.c:300:15: note: in statement
# VUSE <.MEM_505>
_324 = MEM[(char *)&MEM[(void *)&hdblk + 156B]];
tar.c:554:1: internal compiler error: verify_gimple failed
0xd7a849 verify_gimple_in_cfg(function*, bool)
0xbf46fb execute_function_todo

Reply via email to