From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 344BA3857809; Wed, 12 May 2021 07:59:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 344BA3857809 From: "xiao.liu@compiler-dev.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/100555] [OPENMP] ICE in target parallel construct with if-clause Date: Wed, 12 May 2021 07:59:05 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: openmp X-Bugzilla-Severity: normal X-Bugzilla-Who: xiao.liu@compiler-dev.com 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: Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2021 07:59:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100555 --- Comment #1 from xiao.liu@compiler-dev.com -= -- Additionally, "implicit none" will lead errors if exists directive-name-modifier in if-clause. module m integer, save :: n =3D 4 end module program test use m use omp_lib implicit none integer :: i !$omp target parallel do if(target: n > 2) if(parallel: n > 2) do i=3D1,n print *, "thread id =3D ", omp_get_thread_num() end do !$omp end target parallel do end program The error is, test.f90:10:54: 10 | !$omp target parallel do if(target: n > 2) if(parallel: n > 2) | 1 Error: Symbol =E2=80=98parallel=E2=80=99 at (1) has no IMPLICIT type; did y= ou mean =E2=80=98omp_in_parallel=E2=80=99? test.f90:10:34: 10 | !$omp target parallel do if(target: n > 2) if(parallel: n > 2) | 1 Error: Symbol =E2=80=98target=E2=80=99 at (1) has no IMPLICIT type=