[Bug c++/115968] g++ 12 and above incorrectly optimize the code with Eigen (-O2 or -O1)

2024-07-17 Thread summersnow9403 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115968 --- Comment #3 from HanatoK --- (In reply to Andrew Pinski from comment #2) > See C++11 and the auto keyword section of > https://eigen.tuxfamily.org/dox/TopicPitfalls.html > > > The problem is that eval() returns a temporary object (in this c

[Bug c++/115968] New: g++ 12 and above incorrectly optimize the code with Eigen (-O2 or -O1)

2024-07-17 Thread summersnow9403 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115968 Bug ID: 115968 Summary: g++ 12 and above incorrectly optimize the code with Eigen (-O2 or -O1) Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: norma