From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8A2083858D3C; Mon, 20 Sep 2021 19:05:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A2083858D3C From: "gscfq@t-online.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102416] New: [12 Regression] ICE in gimplify_expr, at gimplify.c:15570 Date: Mon, 20 Sep 2021 19:05:36 +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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gscfq@t-online.de 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 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 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: Mon, 20 Sep 2021 19:05:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102416 Bug ID: 102416 Summary: [12 Regression] ICE in gimplify_expr, at gimplify.c:15570 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gscfq@t-online.de Target Milestone: --- Started between 20210523 and 20210530 : $ cat z1.c void *f () { #pragma omp task affinity(f()[2]) ; } $ cat z2.c void f () { struct S *x; #pragma omp task affinity(*x) ; } $ gcc-12-20210919 -c z1.c -fopenmp z1.c: In function 'f': z1.c:3:32: warning: dereferencing 'void *' pointer 3 | #pragma omp task affinity(f()[2]) | ^ z1.c:3:28: warning: dereferencing 'void *' pointer 3 | #pragma omp task affinity(f()[2]) | ^ z1.c:3:28: internal compiler error: in gimplify_expr, at gimplify.c:15570 0x960cc4 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15570 0x9581e4 gimplify_omp_affinity ../../gcc/gimplify.c:8105 0x9581e4 gimplify_scan_omp_clauses ../../gcc/gimplify.c:9924 0x95dbeb gimplify_omp_task ../../gcc/gimplify.c:11814 0x95dbeb gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:15062 0x960cf8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7006 0x961251 gimplify_bind_expr ../../gcc/gimplify.c:1426 0x95ecca gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*= ), int) ../../gcc/gimplify.c:14769 0x960cf8 gimplify_stmt(tree_node**, gimple**) ../../gcc/gimplify.c:7006 0x961d6b gimplify_body(tree_node*, bool) ../../gcc/gimplify.c:15814 0x9621bf gimplify_function_tree(tree_node*) ../../gcc/gimplify.c:15968 0x7eaf97 cgraph_node::analyze() ../../gcc/cgraphunit.c:670 0x7ed8e7 analyze_functions ../../gcc/cgraphunit.c:1234 0x7ee2ad symbol_table::finalize_compilation_unit() ../../gcc/cgraphunit.c:2508=