public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack @ 2023-05-12 7:47 rafel.perello at upc dot edu 2023-05-12 7:58 ` [Bug c++/109823] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda pinskia at gcc dot gnu.org ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: rafel.perello at upc dot edu @ 2023-05-12 7:47 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 Bug ID: 109823 Summary: Internal segmentation fault for trailing return with doubly expanded variadic pack Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: rafel.perello at upc dot edu Target Milestone: --- Created attachment 55062 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55062&action=edit Code The following code makes the compiler crash if the trailing return with decltype is added. If the lambda is defined without trailing return, the program works as expected. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/109823] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu @ 2023-05-12 7:58 ` pinskia at gcc dot gnu.org 2023-05-12 7:59 ` [Bug c++/109823] [10/11/12/13/14 Regression] " pinskia at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-05-12 7:58 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Internal segmentation fault |ICE with trailing return of |for trailing return with |decltype of a fold |doubly expanded variadic |expression in nested |pack |generic variadic lambda Ever confirmed|0 |1 Last reconfirmed| |2023-05-12 Status|UNCONFIRMED |NEW --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Reduced testcase: int f(int){return 0;} int main() { auto tensor_product = [](const auto &...arguments) { return [&](auto &&... inputs) -> decltype((... * arguments(inputs))) { return 0; }; }; tensor_product(f)(1); } ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/109823] [10/11/12/13/14 Regression] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu 2023-05-12 7:58 ` [Bug c++/109823] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda pinskia at gcc dot gnu.org @ 2023-05-12 7:59 ` pinskia at gcc dot gnu.org 2023-07-07 10:45 ` [Bug c++/109823] [11/12/13/14 " rguenth at gcc dot gnu.org ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-05-12 7:59 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |10.5 Known to work| |7.5.0 Summary|ICE with trailing return of |[10/11/12/13/14 Regression] |decltype of a fold |ICE with trailing return of |expression in nested |decltype of a fold |generic variadic lambda |expression in nested | |generic variadic lambda Known to fail| |8.1.0 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- My testcase is a regression from GCC 7.5.0. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/109823] [11/12/13/14 Regression] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu 2023-05-12 7:58 ` [Bug c++/109823] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda pinskia at gcc dot gnu.org 2023-05-12 7:59 ` [Bug c++/109823] [10/11/12/13/14 Regression] " pinskia at gcc dot gnu.org @ 2023-07-07 10:45 ` rguenth at gcc dot gnu.org 2024-01-10 17:30 ` jamborm at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2023-07-07 10:45 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|10.5 |11.5 --- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 10 branch is being closed. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/109823] [11/12/13/14 Regression] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu ` (2 preceding siblings ...) 2023-07-07 10:45 ` [Bug c++/109823] [11/12/13/14 " rguenth at gcc dot gnu.org @ 2024-01-10 17:30 ` jamborm at gcc dot gnu.org 2024-01-12 11:57 ` rguenth at gcc dot gnu.org 2024-07-19 13:20 ` [Bug c++/109823] [12/13/14/15 " rguenth at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: jamborm at gcc dot gnu.org @ 2024-01-10 17:30 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 Martin Jambor <jamborm at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org Keywords|needs-bisection | --- Comment #4 from Martin Jambor <jamborm at gcc dot gnu.org> --- The testcase from comment #1 started ICEing with commit dc58fa9f3142097b (Jason Merrill: PR c++/84036 - ICE with variadic capture). ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/109823] [11/12/13/14 Regression] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu ` (3 preceding siblings ...) 2024-01-10 17:30 ` jamborm at gcc dot gnu.org @ 2024-01-12 11:57 ` rguenth at gcc dot gnu.org 2024-07-19 13:20 ` [Bug c++/109823] [12/13/14/15 " rguenth at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2024-01-12 11:57 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 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++/109823] [12/13/14/15 Regression] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu ` (4 preceding siblings ...) 2024-01-12 11:57 ` rguenth at gcc dot gnu.org @ 2024-07-19 13:20 ` rguenth at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: rguenth at gcc dot gnu.org @ 2024-07-19 13:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109823 Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|11.5 |12.5 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- GCC 11 branch is being closed. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-07-19 13:20 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2023-05-12 7:47 [Bug c++/109823] New: Internal segmentation fault for trailing return with doubly expanded variadic pack rafel.perello at upc dot edu 2023-05-12 7:58 ` [Bug c++/109823] ICE with trailing return of decltype of a fold expression in nested generic variadic lambda pinskia at gcc dot gnu.org 2023-05-12 7:59 ` [Bug c++/109823] [10/11/12/13/14 Regression] " pinskia at gcc dot gnu.org 2023-07-07 10:45 ` [Bug c++/109823] [11/12/13/14 " rguenth at gcc dot gnu.org 2024-01-10 17:30 ` jamborm at gcc dot gnu.org 2024-01-12 11:57 ` rguenth at gcc dot gnu.org 2024-07-19 13:20 ` [Bug c++/109823] [12/13/14/15 " 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).