[Bug c++/66603] using std::cout causes segfault with unrelated array declaration

2015-06-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66603 --- Comment #5 from Marc Glisse --- Another detail that might confuse you: if you write in n=400; int a[n]; it will probably not crash. The reason is that variables like 'int a[400]' exist for the whole length of the function, the memory

[Bug c++/66603] using std::cout causes segfault with unrelated array declaration

2015-06-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66603 --- Comment #4 from Marc Glisse --- (In reply to gunney1 from comment #3) > Because of the effects of the stream insertion. But maybe I don't > understand very well their relationship. First, I guess it does not crash with icpc because icpc opt

[Bug c++/66603] using std::cout causes segfault with unrelated array declaration

2015-06-19 Thread gunney1 at llnl dot gov
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66603 --- Comment #3 from gunney1 at llnl dot gov --- Because of the effects of the stream insertion. But maybe I don't understand very well their relationship.

[Bug c++/66603] using std::cout causes segfault with unrelated array declaration

2015-06-19 Thread glisse at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66603 Marc Glisse changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/66603] using std::cout causes segfault with unrelated array declaration

2015-06-19 Thread daniel.kruegler at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66603 Daniel Krügler changed: What|Removed |Added CC||daniel.kruegler@googlemail.