[Bug c++/123452] ICE: Segmentation fault during error reporting for invalid bit-field initialization

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 8 06:26:16 GMT 2026


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

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
ICE without any errors:
```

struct bfield_struct {
   union {
       unsigned short us_bf :1;
       struct { 
           unsigned a:8;
       };
   };
};

int main() {
    struct bfield_struct bf_vals[]({
        {.a=1}
    });
}
```


More information about the Gcc-bugs mailing list