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

            Bug ID: 124812
           Summary: verify_gimple failed
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zeng2401 at gmail dot com
  Target Milestone: ---

code:
#include <stdlib.h>
#include <string.h>

long long __builtin_strlen(const char* str)
{
    long long result = 0;
    while (*str) {
            ++result;
            ++str;
    }
    return result;
}


Compilation configuration:
   - Compiler path: /home/zhm/GCC/test_data/gcc-latest-install/bin/gcc
   - Compiler version: gcc (GCC) 16.0.1 20260407 (experimental)
   - Compilation command: /home/zhm/GCC/test_data/gcc-latest-install/bin/gcc -x
c -O3 -c /home/zhm/Fuzz/outputs/full_run/c-11/1.fuzz -o /tmp/fuzz_compile_out
2>&1
   - Timeout: 15 seconds


In function ‘__builtin_strlen’:
<path>:4:11: error: invalid conversion in gimple call
    4 | long long __builtin_strlen(const char* str)
      |           ^~~~~~~~~~~~~~~~
long unsigned int
long long int

# VUSE <.MEM_5(D)>
_2 = __builtin_strlen (_8);
during GIMPLE pass: ldist
<path>:4:11: internal compiler error: verify_gimple failed
0x577106b internal_error(char const*, ...)
       
/home/zhm/GCC/test_data/gcc-latest-src/gcc/diagnostic-global-context.cc:787
0x235cb82 verify_gimple_in_cfg(function*, bool, bool)
        /home/zhm/GCC/test_data/gcc-latest-src/gcc/tree-cfg.cc:5601
0x1fcd3ab execute_function_todo
        /home/zhm/GCC/test_data/gcc-latest-src/gcc/passes.cc:2100
0x1fcb28c do_per_function
        /home/zhm/GCC/test_data/gcc-latest-src/gcc/passes.cc:1699
0x1fcd80b execute_todo
        /home/zhm/GCC/test_data/gcc-latest-src/gcc/passes.cc:2152
/home/zhm/GCC/test_data/gcc-latest-install/libexec/gcc/x86_64-pc-linux-gnu/16.0.1/cc1
-quiet -imultiarch x86_64-linux-gnu <path> -quiet -dumpdir /tmp/ -dumpbase
fuzz_compile_out_5.fuzz -dumpbase-ext .fuzz -mtune=generic -march=x86-64 -O3 -o
/tmp/ccoN6pEk.s
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.

Reply via email to