public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
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	[thread overview]
Message-ID: <bug-102416-4@http.gcc.gnu.org/bugzilla/> (raw)

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102416

            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

             reply	other threads:[~2021-09-20 19:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-20 19:05 gscfq@t-online.de [this message]
2021-09-20 19:43 ` [Bug c/102416] " pinskia at gcc dot gnu.org
2021-09-27 13:06 ` [Bug c/102416] ICE in gimplify_expr, at gimplify.c:15570 since r12-1108-g9a5de4d5af1c10a8 marxin at gcc dot gnu.org
2022-05-06  8:31 ` jakub at gcc dot gnu.org
2023-05-08 12:22 ` rguenth at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-102416-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).