public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mu11 at yahoo dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/100599] New: internal compiler error: Segmentation fault Date: Fri, 14 May 2021 13:36:07 +0000 [thread overview] Message-ID: <bug-100599-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100599 Bug ID: 100599 Summary: internal compiler error: Segmentation fault Product: gcc Version: 11.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: mu11 at yahoo dot com Target Milestone: --- Created attachment 50812 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50812&action=edit test case for bug gcc crashes with an internal error. Using the attached test case: % g++ -c -std=c++11 x2.cpp x2.cpp: In substitution of ‘template<class _Rep, class _Period> template<class _Period2> using __is_harmonic = std::__bool_constant<(std::ratio<_Period::den, std::duration<_Rep, _Period>::_S_gcd(5, 3)>::den == 1)> [with _Period2 = _Period2; _Rep = _Rep; _Period = _Period]’: x2.cpp:92:142: required from here x2.cpp:83:23: internal compiler error: Segmentation fault 83 | static constexpr long _S_gcd(long __m, long __n) noexcept | ^~~~~~ 0xcbd91f crash_signal ../../gcc-11.1.0/gcc/toplev.c:327 0x7a4921 tsubst(tree_node*, tree_node*, int, tree_node*) ../../gcc-11.1.0/gcc/cp/pt.c:15649 0x7b75f1 tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ../../gcc-11.1.0/gcc/cp/pt.c:13418 0x7afb00 tsubst_aggr_type ../../gcc-11.1.0/gcc/cp/pt.c:13621 0x7ba32e tsubst_function_decl ../../gcc-11.1.0/gcc/cp/pt.c:14020 0x7b0529 tsubst_decl ../../gcc-11.1.0/gcc/cp/pt.c:14513 0x79f1c5 tsubst_copy ../../gcc-11.1.0/gcc/cp/pt.c:16747 0x7a0c90 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:20950 0x7a1199 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19587 0x7a1199 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:20223 0x7b2954 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19587 0x7b2954 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19198 0x7b75f1 tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ../../gcc-11.1.0/gcc/cp/pt.c:13418 0x7afb00 tsubst_aggr_type ../../gcc-11.1.0/gcc/cp/pt.c:13621 0x7a0535 tsubst_qualified_id ../../gcc-11.1.0/gcc/cp/pt.c:16448 0x7a19f6 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19948 0x7a0b03 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19587 0x7a0b03 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19910 0x7b2954 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, bool, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19587 0x7b2954 tsubst_expr(tree_node*, tree_node*, int, tree_node*, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19198
next reply other threads:[~2021-05-14 13:36 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-14 13:36 mu11 at yahoo dot com [this message] 2021-05-14 14:16 ` [Bug c++/100599] ICE in tree check: accessed elt 2 of ‘tree_vec’ with 1 elts in tsubst, at cp/pt.c:15649 marxin at gcc dot gnu.org 2021-06-04 2:32 ` ppalka 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-100599-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).