Re: [Patch] Fortran/OpenMP: Fix strictly structured blocks parsing

2022-08-24 Thread Harald Anlauf via Gcc-patches
Hi Tobias, Am 24.08.22 um 19:47 schrieb Tobias Burnus: This patch is about error diagnostic + an ICE for invalid code. [...] (So far, so good, but then the parsing-code did run into a bug.) For the blocks, the following applies. OpenMP permits either * strictly structured blocks (with optiona

[Patch] Fortran/OpenMP: Fix strictly structured blocks parsing

2022-08-24 Thread Tobias Burnus
This patch is about error diagnostic + an ICE for invalid code. Before the patch, gfortran/f951 showed: ... Error: 'ancestor' device modifier not preceded by 'requires' directive with 'reverse_offload' clause 18 | end block | 1 Error: Expecting END PROGRAM statement at (1) gfortran: in