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
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
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.
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
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
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?