https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100501
--- Comment #6 from Chengnian Sun <cnsun at uwaterloo dot ca> --- Another duplicate. $ gcc-trunk -v Using built-in specs. COLLECT_GCC=gcc-trunk COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/configure --enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch --prefix=/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210723 (experimental) [master revision :3eeaf64a5:01ac2f08b0105a1c85425d0e59216eb528c6d2ab] (GCC) $ cat mutant.c foo() { __asm__("" : : "m"(({}))); } $ gcc-trunk -w mutant.c mutant.c: In function ‘foo’: mutant.c:1:29: internal compiler error: Segmentation fault 1 | foo() { __asm__("" : : "m"(({}))); } | ~^~~ 0xf28613 crash_signal /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/toplev.c:328 0xc0eb94 is_gimple_variable /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.h:84 0xc0eb94 is_gimple_id /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.h:95 0xc0eb94 is_gimple_addressable /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.h:122 0xc0eb94 is_gimple_lvalue(tree_node*) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimple-expr.c:595 0xc4c06d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:15179 0xc59038 gimplify_asm_expr /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:6497 0xc4bfb1 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:14556 0xc4db2a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:6869 0xc4e35e gimplify_bind_expr /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:1426 0xc4b33c gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:14424 0xc4db2a gimplify_stmt(tree_node**, gimple**) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:6869 0xc4f153 gimplify_body(tree_node*, bool) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:15456 0xc4f5a1 gimplify_function_tree(tree_node*) /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/gimplify.c:15610 0xaa2657 cgraph_node::analyze() /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/cgraphunit.c:670 0xaa5531 analyze_functions /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/cgraphunit.c:1234 0xaa6011 symbol_table::finalize_compilation_unit() /tmp/tmp.7yrVYtTGDZ-gcc-builder/gcc/gcc/cgraphunit.c:2508 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.