https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81223

            Bug ID: 81223
           Summary: [8 Regression] ICE in instrument_null at
                    gcc/ubsan.c:1230
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at 
gcc dot gnu.org
  Target Milestone: ---

Starting from r249030 we ICE on:

$ cat ice.c
int b;
void c ();
void
d ()
{
  struct
  {
    char a[b];
  } e;
  c (e);
}

$ gcc -c -fsanitize=alignment ice.c
during GIMPLE pass: ubsan
ice.c: In function ā€˜d’:
ice.c:11:1: internal compiler error: Segmentation fault
 }
 ^
0xb923bf crash_signal
        ../../gcc/toplev.c:338
0xbb3664 instrument_null
        ../../gcc/ubsan.c:1230
0xbb9c0b execute
        ../../gcc/ubsan.c:2019

Reply via email to