public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "asolokha at gmx dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/100859] New: ICE in tsubst_omp_clauses, at cp/pt.c:17520 Date: Tue, 01 Jun 2021 15:25:22 +0000 [thread overview] Message-ID: <bug-100859-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100859 Bug ID: 100859 Summary: ICE in tsubst_omp_clauses, at cp/pt.c:17520 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: openmp Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- g++-12.0.0-alpha20210530 snapshot (g:a0a7adeea31918deefb053a9a15257af94aecfaf) ICEs when compiling the following testcase, reduced from test/OpenMP/task_ast_print.cpp from the clang 12.0.0 test suite, w/ -fopenmp: struct S1 { S1 () {} }; template <typename T> class S7 { protected: T c[10]; public: S7 () { #pragma omp task affinity (iterator (i = 0 : 10 : 1): c[i]) for (int k = 0; k < 1; ++k) ; } }; struct S8 : public S7<S1> { S8 () : S7<S1> () {} }; % g++-12.0.0 -fopenmp -c jhbrjcts.cpp jhbrjcts.cpp: In instantiation of 'S7<T>::S7() [with T = S1]': jhbrjcts.cpp:19:19: required from here jhbrjcts.cpp:12:9: internal compiler error: in tsubst_omp_clauses, at cp/pt.c:17520 12 | #pragma omp task affinity (iterator (i = 0 : 10 : 1): c[i]) | ^~~ 0x6b8a81 tsubst_omp_clauses /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:17520 0xab7392 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:18720 0xab726e tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:18507 0xab7eb2 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:18142 0xab7eb2 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:18156 0xab726e tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:18507 0xabd308 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:18142 0xabd308 instantiate_body /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:25843 0xabe502 instantiate_decl(tree_node*, bool, bool) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:26137 0xae36ab instantiate_pending_templates(int) /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/pt.c:26216 0x9a4d7b c_parse_final_cleanups() /var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210530/work/gcc-12-20210530/gcc/cp/decl2.c:4966
next reply other threads:[~2021-06-01 15:25 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-06-01 15:25 asolokha at gmx dot com [this message] 2021-06-02 6:29 ` [Bug c++/100859] [12 Regression] ICE in tsubst_omp_clauses, at cp/pt.c:17520 since r12-1108-g9a5de4d5af1c10a8 marxin at gcc dot gnu.org 2021-06-02 7:40 ` [Bug c++/100859] [12 Regression][OpenMP] " burnus at gcc dot gnu.org 2021-06-02 8:01 ` rguenth at gcc dot gnu.org 2021-06-02 8:44 ` jakub at gcc dot gnu.org 2021-06-02 9:51 ` jakub at gcc dot gnu.org 2021-06-02 9:57 ` jakub at gcc dot gnu.org 2021-06-02 12:16 ` jakub at gcc dot gnu.org 2021-06-03 8:46 ` cvs-commit at gcc dot gnu.org 2021-06-04 9:22 ` 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-100859-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).