public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/103236] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13162
@ 2021-11-14 16:17 hewillk at gmail dot com
2021-11-14 16:22 ` [Bug c++/103236] " hewillk at gmail dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2021-11-14 16:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103236
Bug ID: 103236
Summary: ICE: in tsubst_pack_expansion, at cp/pt.c:13162
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: ---
This seems to be an old bug, but I haven't found the dup of which bug it is.
Maybe I have reported a similar one a long time ago, but I'm not sure.
template <class... Ts>
void foo(const Ts&...) {
([] {
[](auto) { }([](auto... x) { x; });
}(), ...);
}
int main() {
foo(0);
}
https://godbolt.org/z/Y916oqvje
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/103236] ICE: in tsubst_pack_expansion, at cp/pt.c:13162
2021-11-14 16:17 [Bug c++/103236] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13162 hewillk at gmail dot com
@ 2021-11-14 16:22 ` hewillk at gmail dot com
2021-11-14 21:25 ` [Bug c++/103236] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: hewillk at gmail dot com @ 2021-11-14 16:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103236
--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
may be dup of PR99590.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/103236] [9/10/11/12 Regression] ICE: in tsubst_pack_expansion, at cp/pt.c:13162
2021-11-14 16:17 [Bug c++/103236] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13162 hewillk at gmail dot com
2021-11-14 16:22 ` [Bug c++/103236] " hewillk at gmail dot com
@ 2021-11-14 21:25 ` pinskia at gcc dot gnu.org
2021-11-15 9:10 ` rguenth at gcc dot gnu.org
2022-04-28 19:32 ` [Bug c++/103236] [9/10/11/12/13 " mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-11-14 21:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103236
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |9.5
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Known to fail| |8.1.0
Summary|ICE: in |[9/10/11/12 Regression]
|tsubst_pack_expansion, at |ICE: in
|cp/pt.c:13162 |tsubst_pack_expansion, at
| |cp/pt.c:13162
Known to work| |7.1.0, 7.4.0
Last reconfirmed| |2021-11-14
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 7.4.0 and before did:
<source>: In lambda function:
<source>:5:35: error: parameter packs not expanded with '...':
[](auto) { }([](auto... x) { x; });
^
<source>:5:35: note: 'x'
<source>: In function 'void foo(const Ts& ...)':
<source>:6:4: error: operand of fold expression has no unexpanded parameter
packs
([] {
~~~~
[](auto) { }([](auto... x) { x; });
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
}(), ...);
~^~
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/103236] [9/10/11/12 Regression] ICE: in tsubst_pack_expansion, at cp/pt.c:13162
2021-11-14 16:17 [Bug c++/103236] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13162 hewillk at gmail dot com
2021-11-14 16:22 ` [Bug c++/103236] " hewillk at gmail dot com
2021-11-14 21:25 ` [Bug c++/103236] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
@ 2021-11-15 9:10 ` rguenth at gcc dot gnu.org
2022-04-28 19:32 ` [Bug c++/103236] [9/10/11/12/13 " mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-11-15 9:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103236
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/103236] [9/10/11/12/13 Regression] ICE: in tsubst_pack_expansion, at cp/pt.c:13162
2021-11-14 16:17 [Bug c++/103236] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13162 hewillk at gmail dot com
` (2 preceding siblings ...)
2021-11-15 9:10 ` rguenth at gcc dot gnu.org
@ 2022-04-28 19:32 ` mpolacek at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-04-28 19:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103236
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
CC| |mpolacek at gcc dot gnu.org
--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed by r12-8258-g65735d21ac4104
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-04-28 19:32 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-14 16:17 [Bug c++/103236] New: ICE: in tsubst_pack_expansion, at cp/pt.c:13162 hewillk at gmail dot com
2021-11-14 16:22 ` [Bug c++/103236] " hewillk at gmail dot com
2021-11-14 21:25 ` [Bug c++/103236] [9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2021-11-15 9:10 ` rguenth at gcc dot gnu.org
2022-04-28 19:32 ` [Bug c++/103236] [9/10/11/12/13 " mpolacek 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).