public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/99590] New: ICE when pack expansion with lambda
@ 2021-03-15 7:14 hewillk at gmail dot com
2021-03-15 9:07 ` [Bug c++/99590] " hewillk at gmail dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: hewillk at gmail dot com @ 2021-03-15 7:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Bug ID: 99590
Summary: ICE when pack expansion with lambda
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: hewillk at gmail dot com
Target Milestone: ---
The following code will trigger ICE on gcc-8 ~ gcc-trunk with "-std=c++2a"
mode:
void g(auto... args) {
([args...](auto){}(args), ...);
}
int main() { g(0, 1); }
(goldbot: https://godbolt.org/z/Tvzj7b)
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99590] ICE when pack expansion with lambda
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
@ 2021-03-15 9:07 ` hewillk at gmail dot com
2021-07-27 6:57 ` [Bug c++/99590] 9/10/11/12 Regression] " pinskia at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hewillk at gmail dot com @ 2021-03-15 9:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
--- Comment #1 from 康桓瑋 <hewillk at gmail dot com> ---
I think this is a valid code:
void g(auto... args) {
([args...](auto...){}(args ), ...);
}
void f(auto... args) {
([args ](auto...){}(args...), ...);
}
int main() {
g(0, 1); // this one ICE
f(0, 1); // this one works
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99590] 9/10/11/12 Regression] ICE when pack expansion with lambda
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
2021-03-15 9:07 ` [Bug c++/99590] " hewillk at gmail dot com
@ 2021-07-27 6:57 ` pinskia at gcc dot gnu.org
2022-01-17 15:00 ` [Bug c++/99590] [9/10/11/12 " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-07-27 6:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE when pack expansion |9/10/11/12 Regression] ICE
|with lambda |when pack expansion with
| |lambda
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-07-27
Ever confirmed|0 |1
Target Milestone|--- |9.5
Keywords|ice-on-invalid-code |ice-on-valid-code
Known to work| |7.1.0
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Here is a C++17 version which crashes from 8.1+:
template<typename ...T>
void g(T... args) {
([args...](auto){}(args), ...);
}
int main() { g(0, 1); }
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99590] [9/10/11/12 Regression] ICE when pack expansion with lambda
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
2021-03-15 9:07 ` [Bug c++/99590] " hewillk at gmail dot com
2021-07-27 6:57 ` [Bug c++/99590] 9/10/11/12 Regression] " pinskia at gcc dot gnu.org
@ 2022-01-17 15:00 ` rguenth at gcc dot gnu.org
2022-05-27 9:44 ` [Bug c++/99590] [10/11/12/13 " rguenth at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 15:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99590] [10/11/12/13 Regression] ICE when pack expansion with lambda
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
` (2 preceding siblings ...)
2022-01-17 15:00 ` [Bug c++/99590] [9/10/11/12 " rguenth at gcc dot gnu.org
@ 2022-05-27 9:44 ` rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug c++/99590] [11/12/13/14 " rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-27 9:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|9.5 |10.4
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 9 branch is being closed
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99590] [10/11/12/13 Regression] ICE when pack expansion with lambda
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
` (3 preceding siblings ...)
2022-05-27 9:44 ` [Bug c++/99590] [10/11/12/13 " rguenth at gcc dot gnu.org
@ 2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug c++/99590] [11/12/13/14 " rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.4 |10.5
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/99590] [11/12/13/14 Regression] ICE when pack expansion with lambda
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
` (4 preceding siblings ...)
2022-06-28 10:43 ` jakub at gcc dot gnu.org
@ 2023-07-07 10:39 ` rguenth at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99590
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|10.5 |11.5
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-07-07 10:39 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 7:14 [Bug c++/99590] New: ICE when pack expansion with lambda hewillk at gmail dot com
2021-03-15 9:07 ` [Bug c++/99590] " hewillk at gmail dot com
2021-07-27 6:57 ` [Bug c++/99590] 9/10/11/12 Regression] " pinskia at gcc dot gnu.org
2022-01-17 15:00 ` [Bug c++/99590] [9/10/11/12 " rguenth at gcc dot gnu.org
2022-05-27 9:44 ` [Bug c++/99590] [10/11/12/13 " rguenth at gcc dot gnu.org
2022-06-28 10:43 ` jakub at gcc dot gnu.org
2023-07-07 10:39 ` [Bug c++/99590] [11/12/13/14 " rguenth 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).