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

            Bug ID: 120913
           Summary: ICE on x86_64-linux-gnu: in fold_convert_loc, at
                    fold-const.cc:2774 with vector_size
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jiangchangwu at smail dot nju.edu.cn
  Target Milestone: ---

Compiler Explorer: https://gcc.godbolt.org/z/YP9fn1fTE

*******************************************************************************
gcc version:
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/home/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc/configure --disable-multilib --disable-bootstrap
--enable-languages=c,c++ --prefix=/home/software/gcc-trunk --enable-coverage
--disable-werror --enable-checking=yes
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 16.0.0 20250613 (experimental) (GCC)

*******************************************************************************
Program:
$ cat mutant.c
typedef int a __attribute__((vector_size(16)));
void __GIMPLE b() {
  _Literal(a) 1;
}

*******************************************************************************
Command Lines:
$ gcc -fgimple mutant.c
mutant.c: In function 'b':
mutant.c:3:3: internal compiler error: in fold_convert_loc, at
fold-const.cc:2774
    3 |   _Literal(a) 1;
      |   ^~~~~~~~
0x5554b38 internal_error(char const*, ...)
        ../../gcc/gcc/diagnostic-global-context.cc:517
0x54d2d0a fancy_abort(char const*, int, char const*)
        ../../gcc/gcc/diagnostic.cc:1803
0x16eccef fold_convert_loc(unsigned long, tree_node*, tree_node*)
        ../../gcc/gcc/fold-const.cc:2774
0x10c0739 c_parser_gimple_postfix_expression
        ../../gcc/gcc/c/gimple-parser.cc:1795
0x10bcce4 c_parser_gimple_unary_expression
        ../../gcc/gcc/c/gimple-parser.cc:1301
0x10b8312 c_parser_gimple_statement
        ../../gcc/gcc/c/gimple-parser.cc:782
0x10b7fbd c_parser_gimple_compound_statement
        ../../gcc/gcc/c/gimple-parser.cc:722
0x10b4d5c c_parser_parse_gimple_body(c_parser*, char*, c_declspec_il,
profile_count)
        ../../gcc/gcc/c/gimple-parser.cc:296
0xffac2e c_parser_declaration_or_fndef
        ../../gcc/gcc/c/c-parser.cc:3217
0xff59fd c_parser_external_declaration
        ../../gcc/gcc/c/c-parser.cc:2155
0xff4ea2 c_parser_translation_unit
        ../../gcc/gcc/c/c-parser.cc:2009
0x10a17ee c_parse_file()
        ../../gcc/gcc/c/c-parser.cc:30153
0x11d7aeb c_common_parse_file()
        ../../gcc/gcc/c-family/c-opts.cc:1385
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.
  • [Bug c/120913] New: ICE ... jiangchangwu at smail dot nju.edu.cn via Gcc-bugs

Reply via email to