https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91280
Bug ID: 91280 Summary: [8/9/10 Regression] ICE in get_constraint_for_component_ref, at tree-ssa-structalias.c:3259 since r260354 Product: gcc Version: 9.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: rguenth at gcc dot gnu.org Target Milestone: --- Created attachment 46632 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46632&action=edit test-case Following test-case causes ICE: $ gcc-9 -O2 batch.ii -c batch.ii: In lambda function: batch.ii:246:54: warning: no return statement in function returning non-void [-Wreturn-type] 246 | I registrar__body__1__object([](int *) -> A * { K(); }); | ^ during GIMPLE pass: alias batch.ii: In constructor ‘K::K()’: batch.ii:233:3: internal compiler error: in get_constraint_for_component_ref, at tree-ssa-structalias.c:3259 233 | K() : A(&BatchMatMul_context) { | ^ 0x7f34ecbccbca __libc_start_main ../csu/libc-start.c:308 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://bugs.opensuse.org/> for instructions.