[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-22 Thread v_pimenov at wargaming dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 --- Comment #7 from V. Pimenov --- Thank you.

[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 --- Comment #6 from Jakub Jelinek --- See ISO C99, 6.3.2.3/7 (or similar wording in C++ standard).

[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-22 Thread v_pimenov at wargaming dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 --- Comment #5 from V. Pimenov --- Could you please explain why does my program have an undefined behaviour in it?

[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-22 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-22 Thread v_pimenov at wargaming dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 --- Comment #3 from V. Pimenov --- Because gcc should not use SIMD instructions for unaligned arrays.

[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-21 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 --- Comment #2 from Andrew Pinski --- Why do you think this is a bug? C rules about alignment apply here.

[Bug c++/61282] vectorization causes segfaults in a compiled program during access to an int-casted char[] after bool in a struct

2014-05-21 Thread v_pimenov at wargaming dot net
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61282 --- Comment #1 from V. Pimenov --- $ gcc --version gcc (GCC) 4.7.2 20121015 (Red Hat 4.7.2-5) Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERC