[Bug c/81687] New: Compiler drops label in OpenMP region

2017-08-03 Thread protze at itc dot rwth-aachen.de
Assignee: unassigned at gcc dot gnu.org Reporter: protze at itc dot rwth-aachen.de Target Milestone: --- Created attachment 41911 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41911&action=edit stripped down reproducer The issue was reproduced on these systems / co

[Bug c/81687] Compiler drops label in OpenMP region

2017-08-03 Thread protze at itc dot rwth-aachen.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687 --- Comment #2 from Joachim Protze --- Why do you classify the testcase to be invalid code? Neither OpenMP nor C forbid the use of a label there. Is this an undocumented restriction of the &&-extension? Also, clang and icc accept the code despit

[Bug c/81687] Compiler drops label in OpenMP region

2017-08-04 Thread protze at itc dot rwth-aachen.de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81687 --- Comment #5 from Joachim Protze --- Jakub, thank you for the quick solution! I successfully applied your patch to the sources from 7.1 release tarball. The two test cases you added are built and linked successfully. I can also successfully