[Bug c++/97952] Poor optimization of closure-like construct in C++ as compared to C

2020-11-23 Thread eric-gcc at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97952 --- Comment #1 from eric-gcc at omnifarious dot org --- Because you might not like Godbolt links, here is the C code: //---cut here--- /*** core string search routine ***/ typedef char *String; typedef unsigne

[Bug c++/97952] New: Poor optimization of closure-like construct in C++ as compared to C

2020-11-23 Thread eric-gcc at omnifarious dot org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97952 Bug ID: 97952 Summary: Poor optimization of closure-like construct in C++ as compared to C Product: gcc Version: 10.2.0 Status: UNCONFIRMED Severity: normal