public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/101595] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13124
@ 2021-07-23 6:59 hewillk at gmail dot com
2021-07-23 7:51 ` [Bug c++/101595] " marxin at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: hewillk at gmail dot com @ 2021-07-23 6:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101595
Bug ID: 101595
Summary: ICE: in tsubst_pack_expansion, at cp/pt.c:13124
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
template<class>
concept C = true;
auto apply(auto f, auto... args) {
f(args...);
}
auto f(auto) {
apply(
[](auto... x) {
([] { if constexpr (C<decltype(x)>); }(), ...);
}, 0);
}
int main() {
f(0);
}
https://godbolt.org/z/eGjzePdf4
<source>: In instantiation of 'f<int>(int)::<lambda(auto:4 ...)> [with auto:4 =
{int}]':
<source>:5:4: required from 'auto apply(auto:1, auto:2 ...) [with auto:1 =
f<int>(int)::<lambda(auto:4 ...)>; auto:2 = {int}]'
<source>:9:8: required from 'auto f(auto:3) [with auto:3 = int]'
<source>:16:4: required from here
<source>:10:12: internal compiler error: in tsubst_pack_expansion, at
cp/pt.c:13124
10 | [](auto... x) {
| ~~~~^~~~~
0x1d75749 internal_error(char const*, ...)
???:0
0x72daa7 fancy_abort(char const*, int, char const*)
???:0
0x9a9f67 tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
???:0
0x9a9cb7 tsubst_pack_expansion(tree_node*, tree_node*, int, tree_node*)
???:0
0x995c67 instantiate_decl(tree_node*, bool, bool)
???:0
0x83defe maybe_instantiate_decl(tree_node*)
???:0
0x83f660 mark_used(tree_node*, int)
???:0
0x759055 build_op_call(tree_node*, vec<tree_node*, va_gc, vl_embed>**, int)
???:0
0x9fc005 finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
???:0
0x995c67 instantiate_decl(tree_node*, bool, bool)
???:0
0x83defe maybe_instantiate_decl(tree_node*)
???:0
0x83f660 mark_used(tree_node*, int)
???:0
0x754867 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
???:0
0x9fc18c finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
???:0
0x995c67 instantiate_decl(tree_node*, bool, bool)
???:0
0x83defe maybe_instantiate_decl(tree_node*)
???:0
0x83f660 mark_used(tree_node*, int)
???:0
0x754867 build_new_function_call(tree_node*, vec<tree_node*, va_gc,
vl_embed>**, int)
???:0
0x9fc18c finish_call_expr(tree_node*, vec<tree_node*, va_gc, vl_embed>**, bool,
bool, int)
???:0
0x95b245 c_parse_file()
???:0
Please submit a full bug report,
with preprocessed source if appropriate.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/101595] ICE: in tsubst_pack_expansion, at cp/pt.c:13124
2021-07-23 6:59 [Bug c++/101595] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13124 hewillk at gmail dot com
@ 2021-07-23 7:51 ` marxin at gcc dot gnu.org
2021-10-02 7:15 ` pinskia at gcc dot gnu.org
2021-10-03 1:26 ` ppalka at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-07-23 7:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101595
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org,
| |marxin at gcc dot gnu.org
Last reconfirmed| |2021-07-23
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Confirmed, started with r9-6542-gf869f40780836d17, it was rejected before the
revision.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/101595] ICE: in tsubst_pack_expansion, at cp/pt.c:13124
2021-07-23 6:59 [Bug c++/101595] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13124 hewillk at gmail dot com
2021-07-23 7:51 ` [Bug c++/101595] " marxin at gcc dot gnu.org
@ 2021-10-02 7:15 ` pinskia at gcc dot gnu.org
2021-10-03 1:26 ` ppalka at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-10-02 7:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101595
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-bisection
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=101764
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems to be fixed on the trunk. I suspect r12-3488-gc8b2b89358481d36755.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/101595] ICE: in tsubst_pack_expansion, at cp/pt.c:13124
2021-07-23 6:59 [Bug c++/101595] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13124 hewillk at gmail dot com
2021-07-23 7:51 ` [Bug c++/101595] " marxin at gcc dot gnu.org
2021-10-02 7:15 ` pinskia at gcc dot gnu.org
@ 2021-10-03 1:26 ` ppalka at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: ppalka at gcc dot gnu.org @ 2021-10-03 1:26 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101595
Patrick Palka <ppalka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ppalka at gcc dot gnu.org
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #3 from Patrick Palka <ppalka at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> This seems to be fixed on the trunk. I suspect
> r12-3488-gc8b2b89358481d36755.
Indeed it's fixed by that commit, and the testcase is very similar to PR101764.
I suppose I'll mark this one as a dup then.
*** This bug has been marked as a duplicate of bug 101764 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-10-03 1:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 6:59 [Bug c++/101595] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13124 hewillk at gmail dot com
2021-07-23 7:51 ` [Bug c++/101595] " marxin at gcc dot gnu.org
2021-10-02 7:15 ` pinskia at gcc dot gnu.org
2021-10-03 1:26 ` 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).