Bug#907649: clang-6.0: Erroneous loop optimisation with -O2, accessing to wrong std::vector element

Sylvestre Ledru sylvestre at debian.org
Fri Aug 31 08:57:59 BST 2018


forwarded 907649 https://bugs.llvm.org/show_bug.cgi?id=38786
thanks


Le 30/08/2018 à 18:31, Juan Carlos Garcia Hernandez a écrit :
> When compiling with -O2 the code below, resulting loop is wrongly optimized leading
> to plainly wrong results (not an approximation), it seems that elements in 
> std::vector are not accessed in the right order.
Thanks for this obvious and very clear bug report!
Forwarded upstream!

Cheers,
Sylvestre



More information about the Pkg-llvm-team mailing list