https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117752
Bug ID: 117752 Summary: ICE: Segmentation fault Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: xieym3 at zohomail dot com Target Milestone: --- $ cat 20241123025220_14.c void ldt_add_entry ( void ) { __asm__ ( "" : : "m" ( ( { unsigned __v ; auto volatile __inline__ __attribute__ ( ( ) ) register __restrict__ _Noreturn ; } ) ) ) ; } $ gcc-trunk -v Using built-in specs. COLLECT_GCC=/data/xieym/exp/gcc/test_data/gcc-latest-install/bin/gcc COLLECT_LTO_WRAPPER=/data/xieym/exp/gcc/test_data/gcc-latest-install/libexec/gcc/x86_64-pc-linux-gnu/15.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /data/xieym/exp/gcc/test_data/gcc-latest-src/configure --enable-coverage --enable-checking --disable-multilib --disable-shared --disable-bootstrap --enable-languages=c,c++ --prefix=/data/xieym/exp/gcc/test_data/gcc-latest-install Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241123 (experimental) (GCC) $ gcc-trunk -x c -std=c2x -c 20241123025220_14.c -o /dev/null 20241123025220_14.c: In function ‘ldt_add_entry’: 20241123025220_14.c:3:43: error: ‘auto’ in empty declaration 3 | __asm__ ( "" : : "m" ( ( { unsigned __v ; auto volatile __inline__ __attribute__ ( ( ) ) register __restrict__ _Noreturn ; } ) ) ) ; | ^~~~ 20241123025220_14.c:3:26: internal compiler error: Segmentation fault 3 | __asm__ ( "" : : "m" ( ( { unsigned __v ; auto volatile __inline__ __attribute__ ( ( ) ) register __restrict__ _Noreturn ; } ) ) ) ; | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x567214e internal_error(char const*, ...) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/diagnostic-global-context.cc:517 0x1ff4060 crash_signal /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/toplev.cc:322 0x7f1ae8e6051f ??? ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0 0x170106e is_gimple_variable(tree_node*) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimple-expr.h:84 0x1701121 is_gimple_id(tree_node*) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimple-expr.h:95 0x1701201 is_gimple_addressable(tree_node*) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimple-expr.h:122 0x16fee26 is_gimple_lvalue(tree_node*) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimple-expr.cc:597 0x182f3f7 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:19668 0x17d021a gimplify_asm_expr /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:7458 0x182b177 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:18989 0x17d2b23 gimplify_stmt(tree_node**, gimple**) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:7839 0x17ac306 gimplify_bind_expr /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:1651 0x182a286 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:18857 0x17d2b23 gimplify_stmt(tree_node**, gimple**) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:7839 0x1831208 gimplify_body(tree_node*, bool) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:19945 0x18323e7 gimplify_function_tree(tree_node*) /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/gimplify.cc:20146 0x133bf2a cgraph_node::analyze() /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/cgraphunit.cc:687 0x133fe1a analyze_functions /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/cgraphunit.cc:1251 0x134639f symbol_table::finalize_compilation_unit() /data/xieym/exp/gcc/test_data/gcc-latest-src/gcc/cgraphunit.cc:2560 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.