From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47B4139450CE; Fri, 14 May 2021 13:36:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47B4139450CE From: "mu11 at yahoo dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mu11 at yahoo dot com 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 attachments.created 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: Fri, 14 May 2021 13:36:07 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100599 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=3D50812&action=3Dedit test case for bug gcc crashes with an internal error. Using the attached test case: % g++ -c -std=3Dc++11 x2.cpp x2.cpp: In substitution of =E2=80=98template tem= plate using __is_harmonic =3D std::__bool_constant<(std::ratio<_Period:= :den, std::duration<_Rep, _Period>::_S_gcd(5, 3)>::den =3D=3D 1)> [with _Period2 = =3D _Period2; _Rep =3D _Rep; _Period =3D _Period]=E2=80=99: 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*, boo= l, bool) ../../gcc-11.1.0/gcc/cp/pt.c:20950 0x7a1199 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19587 0x7a1199 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc-11.1.0/gcc/cp/pt.c:20223 0x7b2954 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, 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*, boo= l, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19948 0x7a0b03 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19587 0x7a0b03 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, bool) ../../gcc-11.1.0/gcc/cp/pt.c:19910 0x7b2954 tsubst_copy_and_build(tree_node*, tree_node*, int, tree_node*, boo= l, 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=