[Bug c++/70446] New: g++: internal compiler error: Killed (program cc1plus), probably related to vectors

2016-03-29 Thread ivanbili at gmail dot com
Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: ivanbili at gmail dot com Target Milestone: --- Created attachment 38123 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38123&action=edit causes i

[Bug c++/70446] g++: internal compiler error: Killed (program cc1plus), probably related to vectors

2016-03-29 Thread ivanbili at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70446 --- Comment #1 from ivanbili at gmail dot com --- Also happens if I fix the errors. I.e. replace vector[i].ratio = (float)values[i]/weights[i]; vector[i].weight = weights[i]; with: helper[i].ratio = (float)values[i]/weights[i

[Bug c++/70446] g++: internal compiler error: Killed (program cc1plus), probably related to vectors

2016-03-29 Thread ivanbili at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70446 --- Comment #2 from ivanbili at gmail dot com --- If looks like commenting #include // std::sort out makes the compiler not crash.

[Bug c++/70446] g++: internal compiler error: Killed (program cc1plus), probably related to vectors

2016-03-29 Thread ivanbili at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70446 --- Comment #3 from ivanbili at gmail dot com --- Created attachment 38125 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38125&action=edit Correct code that compiles with clang

[Bug c++/70446] g++: internal compiler error: Killed (program cc1plus), probably related to vectors

2016-03-29 Thread ivanbili at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70446 --- Comment #4 from ivanbili at gmail dot com --- The bug does NOT happen on my other computer with the following version of gcc: Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.3.0/lto-wrapper

[Bug c++/70446] g++: internal compiler error: Killed (program cc1plus), probably related to vectors

2016-03-30 Thread ivanbili at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70446 --- Comment #6 from ivanbili at gmail dot com --- Is there anything I can do to help?