[Bug c++/69355] New: Wrong results with -O1 optimization

2016-01-19 Thread andreas.hilti at hotmail dot com
++ Assignee: unassigned at gcc dot gnu.org Reporter: andreas.hilti at hotmail dot com Target Milestone: --- Consider the following program: It reads in a Vector, normalizes it, and outputs it. typedef tvmet::Vector Vector; int main(){ Vector v1; v1 = 1,2,3; Vector r; r = v1/norm2

[Bug c++/69355] Wrong results with -O1 optimization

2016-01-19 Thread andreas.hilti at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69355 --- Comment #1 from Andreas Hiltebrand --- Created attachment 37392 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37392&action=edit the preprocessed file The attachment was slightly too large, you can download it from: https://www.dropbo

[Bug c++/69355] Wrong results with -O1 optimization

2016-01-19 Thread andreas.hilti at hotmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69355 --- Comment #3 from Andreas Hiltebrand --- I'm sorry. I did not zip it as the guidelines said explicitly: What we do not want [...] An attached archive (tar, zip, shar, whatever) containing all (or some :-) of the above. and the preprocessed fi