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

            Bug ID: 125993
           Summary: [14/15/16/17 Regression] vector code with -g ICEs with
                    the C++ front-end
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---
            Target: bpf

Take:
```
typedef unsigned int u __attribute__((__vector_size__(16)));

u a(u x){
    return x;
}
```

This ICEs with BPF with the C++ front-end with -g:
```
during RTL pass: final
dump file: /app/output.c.348r.final
<source>: In function 'u a(u)':
<source>:5:1: internal compiler error: Segmentation fault
    5 | }
      | ^
0x1859bb8 internal_error(char const*, ...)
        ???:0
0x11ec9f4 btf_ext_add_string
        ???:0
0x11ecc7b btf_add_func_info_for
        ???:0
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Compiler returned: 1
```

Reply via email to