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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sjames at gcc dot gnu.org
            Summary|[13/14 Regression] ICE in   |[13/14 Regression] ICE in
                   |fold_convert_loc, at        |fold_convert_loc, at
                   |fold-const.cc:2627          |fold-const.cc:2627 since
                   |                            |r13-2205-g14cfa01755a66a

--- Comment #5 from Sam James <sjames at gcc dot gnu.org> ---
When trying to reduce another bug, I accidentally reduced to something invalid
which seems to hti this bug:
```
int bfd_elf_final_link() = {}
```

w/
```
$ gcc -O2 /tmp/foo.c -c
/tmp/foo.c:1:1: error: function ‘bfd_elf_final_link’ is initialized like a
variable
    1 | int bfd_elf_final_link() = {}
      | ^~~
/tmp/foo.c:1:1: internal compiler error: in fold_convert_loc, at
fold-const.cc:2627
0x62ce64 fold_convert_loc(unsigned int, tree_node*, tree_node*)
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/fold-const.cc:2627
0x6e5753 pop_init_level(unsigned int, int, obstack*, unsigned int)
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-typeck.cc:9382
0x1f0d141 c_parser_braced_init
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-parser.cc:5775
0x1ef2857 c_parser_initializer
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-parser.cc:5675
0x1edc23a c_parser_declaration_or_fndef
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-parser.cc:2564
0x1edb817 c_parser_external_declaration
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-parser.cc:1925
0x1ed7028 c_parser_translation_unit
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-parser.cc:1779
0x1ed7028 c_parse_file()
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c/c-parser.cc:24632
0x1ecf431 c_common_parse_file()
       
/usr/src/debug/sys-devel/gcc-13.1.0-r1/gcc-13.1.0/gcc/c-family/c-opts.cc:1248
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

Reply via email to