From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CB25E3858D1E; Sat, 24 Sep 2022 18:58:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CB25E3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1664045930; bh=srOd6mx1zBniUOy9SgtFRdgBSTxjnCjJwNwKhEFXXYA=; h=From:To:Subject:Date:From; b=FG9k4No2kacMg63ybn+PY/R6Sv6k4XtkicExrbYzllyanijyjFP/2LleIyYwmNF/T 6Sv4IvOPxoshpzRh1oxRjmR3XO08YWASM7TkSYhIDBNwf3OizoQG7OUmhW/JuqhMqj TXwQjPCMxezvbDEEnX2+57THNaLyF/ypIw2LW72s= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107028] New: [13 Regression][OpenACC] ICE in install_var_field, at omp-low.cc:797 Date: Sat, 24 Sep 2022 18:58:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, openacc 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=3D107028 Bug ID: 107028 Summary: [13 Regression][OpenACC] ICE in install_var_field, at omp-low.cc:797 Product: gcc Version: 13.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, openacc Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: tschwinge at gcc dot gnu.org Target Milestone: --- The following fails with an ICE =20 https://github.com/OpenACCUserGroup/OpenACCV-V/blob/master/Tests/routine_bi= nd_nonprototype_function_nonstring_function.cpp (I find it a bit surprising that even bunch of compile errors still reach t= his function, giving the ICE.) In any case, the following reduced code (which compiles without errors) giv= es an ICE, when compiled with 'g++ -fopenacc': class data_container { public: int data; }; void test2() { data_container a; #pragma acc data copyin(a, a.data) { } } Namely: during GIMPLE pass: omplower test2.cc: In function =E2=80=98void test2()=E2=80=99: test2.cc:8:9: internal compiler error: in install_var_field, at omp-low.cc:= 797 8 | #pragma acc data copyin(a, a.data) | ^~~ 0x83f00d install_var_field ../../repos/gcc-trunk-commit/gcc/omp-low.cc:797 0x109ab6c scan_sharing_clauses ../../repos/gcc-trunk-commit/gcc/omp-low.cc:1677 0x109c557 scan_omp_target ../../repos/gcc-trunk-commit/gcc/omp-low.cc:3110 0x109d340 scan_omp_1_stmt ../../repos/gcc-trunk-commit/gcc/omp-low.cc:4326 0xefcc7a walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../repos/gcc-trunk-commit/gcc/gimple-walk.cc:602 0xefce80 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../repos/gcc-trunk-commit/gcc/gimple-walk.cc:51 0xefcd91 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../repos/gcc-trunk-commit/gcc/gimple-walk.cc:665 0xefce80 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../repos/gcc-trunk-commit/gcc/gimple-walk.cc:51 0xefcd39 walk_gimple_stmt(gimple_stmt_iterator*, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_nod= e**, int*, void*), walk_stmt_info*) ../../repos/gcc-trunk-commit/gcc/gimple-walk.cc:711 0xefce80 walk_gimple_seq_mod(gimple**, tree_node* (*)(gimple_stmt_iterator*, bool*, walk_stmt_info*), tree_node* (*)(tree_node**, int*, void*), walk_stmt_info*) ../../repos/gcc-trunk-commit/gcc/gimple-walk.cc:51 0x10aadba scan_omp ../../repos/gcc-trunk-commit/gcc/omp-low.cc:4376 0x10aadba execute_lower_omp ../../repos/gcc-trunk-commit/gcc/omp-low.cc:14670=