https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92493
David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #2 from David Binderman <dcb314 at hotmail dot com> --- Probably related: This C code: struct a { int b; char c[] } * i; struct d { short e; struct a f } g; h; j() { struct d *f = &g.f; i = f + h; snprintf(j, 8, ".asr_%s_%x_donotuse", i->c); } when compiled by recent gcc trunk and compiler flag -O3 -Wall, does this: uring GIMPLE pass: strlen bug565.c:10:1: internal compiler error: Segmentation fault 10 | j() { | ^ 0xe6692f crash_signal ../../trunk/gcc/toplev.c:328 0x17ae5e3 get_origin_and_offset ../../trunk/gcc/gimple-ssa-sprintf.c:2358 0x17aeea3 alias_offset ../../trunk/gcc/gimple-ssa-sprintf.c:2422 0x17aeea3 format_string ../../trunk/gcc/gimple-ssa-sprintf.c:2447 Problem first seems to occur sometime between revision 278050 and 278100.