[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread baptiste.cartier at ertosgener dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #5 from BCartier --- Thanks for the heads up, nice to know a fix could be possible. As for the const reference in doStuff, do you mean void __attribute__((noinline)) doStuff(const struct TestStruct &myStruct) { ... } ? By doing so

[Bug c++/91501] Stack Optimization bug on function and lambda return

2020-01-14 Thread baptiste.cartier at ertosgener dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91501 --- Comment #1 from BCartier --- Hello, I see this bug has been marked as unconfirmed, are there any updates about this issue ?

[Bug c++/91501] New: Stack Optimization bug on function and lambda return

2019-08-20 Thread baptiste.cartier at ertosgener dot com
Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: baptiste.cartier at ertosgener dot com Target Milestone: --- Created attachment 46735 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46735&action=edit Preprocessed test file When calling a function or a