public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/100872] New: [OpenMP] internal compiler error: tree check: expected integer_cst, have mult_expr in simd_clone_clauses_extract, at omp-simd-clone.c:253 Date: Wed, 02 Jun 2021 08:22:51 +0000 [thread overview] Message-ID: <bug-100872-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100872 Bug ID: 100872 Summary: [OpenMP] internal compiler error: tree check: expected integer_cst, have mult_expr in simd_clone_clauses_extract, at omp-simd-clone.c:253 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, openmp Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: burnus at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- Found when compiling clang's OpenMP testsuite for for * declare_simd_ast_print.cpp: https://github.com/llvm/llvm-project/blob/main/clang/test/OpenMP/declare_simd_ast_print.cpp * declare_simd_codegen.cpp: https://github.com/llvm/llvm-project/blob/main/clang/test/OpenMP/declare_simd_codegen.cpp template <int X, typename T> class TVV { public: #pragma omp declare simd aligned(a : X * 2) aligned(b) linear(ref(b): X) float taddpf(float *a, T *&b) { return *a + *b; } }; TVV<16, float> t16; void f() { float a = 1.0f, b = 2.0f; float *p = &b; float r = t16.taddpf(&a, p); } foo.C:14:1: internal compiler error: tree check: expected integer_cst, have mult_expr in simd_clone_clauses_extract, at omp-simd-clone.c:253 14 | } | ^ 0x8828a4 tree_check_failed(tree_node const*, char const*, int, char const*, ...) ../../repos/gcc/gcc/tree.c:8684 0x97210e tree_int_cst_elt_check(tree_node*, int, char const*, int, char const*) ../../repos/gcc/gcc/tree.h:3571 0x97210e simd_clone_clauses_extract ../../repos/gcc/gcc/omp-simd-clone.c:253 0x97210e expand_simd_clones(cgraph_node*) ../../repos/gcc/gcc/omp-simd-clone.c:1695 0x1cf40a7 ipa_omp_simd_clone ../../repos/gcc/gcc/omp-simd-clone.c:1798
next reply other threads:[~2021-06-02 8:22 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-02 8:22 burnus at gcc dot gnu.org [this message] 2021-06-02 11:03 ` [Bug middle-end/100872] " burnus at gcc dot gnu.org 2021-06-02 14:26 ` [Bug middle-end/100872] [12 Regression] " jakub at gcc dot gnu.org 2021-06-02 14:26 ` jakub at gcc dot gnu.org 2021-06-04 9:17 ` cvs-commit at gcc dot gnu.org 2021-06-04 9:21 ` jakub 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-100872-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: linkBe 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).