[Bug c++/96538] New: Integer overflow when there are multiple operands in addition operation.

2020-08-08 Thread prateek_kd at yahoo dot co.in
: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: prateek_kd at yahoo dot co.in Target Milestone: --- I am trying to add int values present in the vector and store in long int type variable. If I am using for loop for

[Bug c++/96538] Integer overflow when there are multiple operands in addition operation.

2020-08-08 Thread prateek_kd at yahoo dot co.in
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96538 --- Comment #1 from Prateek Khade --- (In reply to Prateek Khade from comment #0) > I am trying to add int values present in the vector and store in long int > type variable. If I am using for loop for calculating the sum of vector > elements pr