https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120369
Bug ID: 120369
Summary: internal compiler error: Segmentation fault during
GIMPLE pass: cplxlower0 only in version 15.1 and trunk
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: mario.rodriguezb1 at um dot es
Target Milestone: ---
ICE in:
```
#include <stdlib.h>
#include <math.h>
#include <complex.h>
int main()
{
double complex z = cos(2.0 * 0.0 + I);
cabs(z);
}
```
Stack dump
```
during GIMPLE pass: cplxlower0
<source>: In function 'main':
<source>:4:5: internal compiler error: Segmentation fault
4 | int main()
| ^~~~
0x2607e45 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
???:0
0x2625bb6 internal_error(char const*, ...)
???:0
0x11a683e verify_gimple_in_cfg(function*, bool, bool)
???:0
```
To quickly reproduce:
https://godbolt.org/z/EqvWqh5zP