From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B4C343858C2C; Fri, 26 May 2023 19:35:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4C343858C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685129729; bh=iHuSQvPkg5Fh3ku7kV/u6DpTWOwgaCg2rXDj/S+lkss=; h=From:To:Subject:Date:From; b=RSgxcizpxv76nWk3hUSoyDFqv+940/C1411E+7HQKklgmZ0USH6wW13fk/1RJZNHi fn0A8coOjB0peFuniEVpjvrScuiXFV07QT2y0KanKWI4FX1o1tHCmA+D+DM9Gr8WRP 7SY/PiaNjjDU3/TBc0qlAlZzLlPqcGQsBrWuv6B0= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/109999] New: [OpenMP] Bogus error message: talks about '"#pragma omp" clause' instead of '"target" clause Date: Fri, 26 May 2023 19:35:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: diagnostic, openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109999 Bug ID: 109999 Summary: [OpenMP] Bogus error message: talks about '"#pragma omp" clause' instead of '"target" clause Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: diagnostic, openmp Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- I just spotted with gcc and g++; IMHO the error message is misleading/wrong/odd, however, it does not seem to be a regression. Namely I get: tests/5.0/allocate/test_allocate_on_device.c:27:43: error: expected =E2=80=98#pragma omp=E2=80=99 clause before =E2=80=98uses_a= llocators=E2=80=99 27 | #pragma omp target map(tofrom: errors, A) uses_allocators(omp_default_mem_alloc) | ^~~~~~~~~~~~~~~ EXPECTED: instead of "expected '#pragma omp' clause" it should be show: "expected 'target' clause". Found when compiling: g++ --free-line-length-none -fopenmp -I ompvv tests/5.0/allocate/test_allocate_on_device.c which is part of https://github.com/SOLLVE/sollve_vv=