https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116409
David Binderman <dcb314 at hotmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcb314 at hotmail dot com --- Comment #10 from David Binderman <dcb314 at hotmail dot com> --- This C code seems to fail with -O1: int RB_Open_SingleDocumentation_document; char RB_Open_SingleDocumentation_document_0, RB_Open_SingleDocumentation_default_name; char *RB_Open_SingleDocumentation_name; void *calloc(); unsigned long strlen(); void RB_Open_SingleDocumentation() { long size = 0; if (RB_Open_SingleDocumentation_document) size += strlen(&RB_Open_SingleDocumentation_document_0); else size += strlen(&RB_Open_SingleDocumentation_default_name); RB_Open_SingleDocumentation_name = calloc(size); } cvise $ ~/gcc/results/bin/gcc -c -w -O1 bug1045.c during GIMPLE pass: phiopt bug1045.c: In function ‘RB_Open_SingleDocumentation’: bug1045.c:14:1: internal compiler error: in factor_out_conditional_operation, at tree-ssa-phiopt.cc:407 14 | } | ^ Might be useful as an additional test case.