From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 242903858D32; Mon, 5 Sep 2022 05:03:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 242903858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662354227; bh=q6RTVKZQG+9pb0BDebBKdlugNbrfZt7EhC7xpyTABwk=; h=From:To:Subject:Date:From; b=BUSJniZD+A1bA/KLp2TGnqmKjEK8+QjuZ1LimN7EA2ENxWe44YoMqDZ+9ZrIJOdhx PagkxZ4eZCh0tGmHUyA4EWZ+njN9HrCtjkcppPKzW33J+nYBPYBk7czzMwofwE1An/ ztPH5d587QUUGeLMAiTvztN7hrLh168xLJTTY+C8= From: "xw111luoye at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/106829] New: OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 Date: Mon, 05 Sep 2022 05:03:46 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: xw111luoye at gmail dot 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created 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=3D106829 Bug ID: 106829 Summary: OpenMP offload internal compiler error: in gimplify_expr, at gimplify.cc:16222 Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: xw111luoye at gmail dot com Target Milestone: --- Created attachment 53537 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D53537&action=3Dedit reproducer source code A minimal source code MultiDiracDeterminant.one.cpp is attached. $ g++ -march=3Dnative -fopenmp -foffload=3Dnvptx-none -foffload-options=3D"= -lm -latomic" -O3 -DNDEBUG -std=3Dc++17 MultiDiracDeterminant.one.cpp -c /home/yeluo/opt/qmcpack/src/QMCWaveFunctions/Fermion/MultiDiracDeterminant.= 2.cpp: In static member function =E2=80=98static void qmcplusplus::MultiDiracDeterminant::mw_evaluateDetsForPtclMove(const qmcplusplus::RefVectorWithLeader&, const qmcplusplus::RefVectorWithLeader&, int)=E2=80=99: /home/yeluo/opt/qmcpack/src/QMCWaveFunctions/Fermion/MultiDiracDeterminant.= 2.cpp:125:9: internal compiler error: in gimplify_expr, at gimplify.cc:16222 125 | PRAGMA_OFFLOAD("omp target teams distribute map(always, from:curRatio_list_ptr[:nw]) \ | ^~~ 0x868378 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gcc/gimplify.cc:16222 0x102b4d9 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15514 0x102d6fc gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15330 0x1042ea4 gimplify_scan_omp_clauses ../../gcc/gcc/gimplify.cc:10293 0x1051438 gimplify_omp_workshare ../../gcc/gcc/gimplify.cc:14244 0x102aa32 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15751 0x102ee1a gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7156 0x102beab gimplify_statement_list ../../gcc/gcc/gimplify.cc:2025 0x102beab gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15654 0x102ee1a gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7156 0x102f640 gimplify_bind_expr ../../gcc/gcc/gimplify.cc:1434 0x102bdce gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15410 0x102ee1a gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7156 0x102beab gimplify_statement_list ../../gcc/gcc/gimplify.cc:2025 0x102beab gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15654 0x102ee1a gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7156 0x102b266 gimplify_and_add(tree_node*, gimple**) ../../gcc/gcc/gimplify.cc:496 0x102b266 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node= *), int) ../../gcc/gcc/gimplify.cc:15561 0x102ee1a gimplify_stmt(tree_node**, gimple**) ../../gcc/gcc/gimplify.cc:7156 0x102beab gimplify_statement_list ../../gcc/gcc/gimplify.cc:2025 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions.=