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

            Bug ID: 121504
           Summary: internal compiler error: tree check: expected class
                    'type', have 'exceptional' (error_mark) in
                    useless_type_conversion_p, at gimple-expr.cc:85
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: xieym3 at zohomail dot com
  Target Milestone: ---

$ cat file.c
#include <stdlib.h>
int x[];
void main() {
    int y;
    y = *x;
}
int x, z;
void main() {
    x = 0xdeadbeef;
    z = 0;
}

Godbolt URL: https://godbolt.org/z/T74j79M7a

Reply via email to