public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100599] New: internal compiler error: Segmentation fault
@ 2021-05-14 13:36 mu11 at yahoo dot com
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
0 siblings, 2 replies; 3+ messages in thread
From: mu11 at yahoo dot com @ 2021-05-14 13:36 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/100599] ICE in tree check: accessed elt 2 of ‘tree_vec’ with 1 elts in tsubst, at cp/pt.c:15649
2021-05-14 13:36 [Bug c++/100599] New: internal compiler error: Segmentation fault mu11 at yahoo dot com
@ 2021-05-14 14:16 ` marxin at gcc dot gnu.org
2021-06-04 2:32 ` ppalka at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-14 14:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100599
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |marxin at gcc dot gnu.org
Status|UNCONFIRMED |NEW
Keywords| |ice-on-valid-code
Last reconfirmed| |2021-05-14
Summary|internal compiler error: |ICE in tree check: accessed
|Segmentation fault |elt 2 of ‘tree_vec’ with 1
| |elts in tsubst, at
| |cp/pt.c:15649
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, it's old ICE.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/100599] ICE in tree check: accessed elt 2 of ‘tree_vec’ with 1 elts in tsubst, at cp/pt.c:15649
2021-05-14 13:36 [Bug c++/100599] New: internal compiler error: Segmentation fault mu11 at yahoo dot com
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
1 sibling, 0 replies; 3+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-06-04 2:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100599
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
CC| |ppalka at gcc dot gnu.org
--- Comment #2 from Patrick Palka <ppalka at gcc dot gnu.org> ---
Looks like this is essentially a dup of PR100102
*** This bug has been marked as a duplicate of bug 100102 ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-06-04 2:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 13:36 [Bug c++/100599] New: internal compiler error: Segmentation fault mu11 at yahoo dot com
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
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).