https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113724
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> --- Created attachment 57407 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57407&action=edit C testcase – passes with patch (except for '#if 0'ed PR113867 issues) DejaGNU-ified testcase for this PR and ('#if 0'-ed for PR113867). Using the attached patch, it no longer gives an ICE and it works except for the '#if 0' code but it regresses for: FAIL: libgomp.c/../libgomp.c-c++-common/baseptrs-1.c (internal compiler error: Segmentation fault) FAIL: libgomp.c/../libgomp.c-c++-common/baseptrs-1.c (test for excess errors) FAIL: libgomp.c/../libgomp.c-c++-common/pr109062.c output pattern test FAIL: libgomp.c/../libgomp.c-c++-common/target-map-1.c execution test FAIL: libgomp.c/target-52.c execution test Thus, there is more work needed. TODO: - Create a tix which solves this issue without regressing - Possibly addressing the PR113867 here