https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65503
Mikhail Maltsev <maltsevm at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |maltsevm at gmail dot com --- Comment #2 from Mikhail Maltsev <maltsevm at gmail dot com> --- Also, I noticed that in some cases GCC is able to generate a loop for initialization: #include <string> int main() { std::string m[1000] {"x", "y"}; std::string n[1000] = {"x", "y"}; } That is done in cp/init.c:build_vec_init. But for the original testcase, the loop is not created. Is it a bug?