[Bug c++/65503] g++ string array in struct crash
maltsevm at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sun Mar 22 22:19:00 GMT 2015
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?
More information about the Gcc-bugs
mailing list