[Bug tree-optimization/94294] [missed optimization] new+delete of unused local string not removed
eyalroz at technion dot ac.il
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 21:54:57 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94294
--- Comment #1 from Eyal Rozenberg <eyalroz at technion dot ac.il> ---
Note:
The bugs also manifest with this simpler program:
#include <string>
int bar() {
std::string second { "Hey... no small-string optimization for me please!"
};
return 123;
}
See: https://godbolt.org/z/LjmNYi
More information about the Gcc-bugs
mailing list