[Bug c++/103954] GCC did not generate correct code for template function with O2

2022-01-09 Thread woodhead99 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103954 --- Comment #2 from Ming Zhi --- thanks for your great answer! I did not know the effect of strict aliasing till today. It looks I need to update my knowledge base about c++ right now. Get Outlook for Android ___

[Bug c++/103954] New: GCC did not generate correct code for template function with O2

2022-01-09 Thread woodhead99 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103954 Bug ID: 103954 Summary: GCC did not generate correct code for template function with O2 Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal