]> OCCT Git - occt-copy.git/commit
0028361: Visualization, TKV3d - buggy behavior of Transformation Persistence compiled...
authorapl <apl@opencascade.com>
Thu, 26 Jan 2017 09:54:30 +0000 (12:54 +0300)
committerrnv <rnv@opencascade.com>
Mon, 13 Mar 2017 08:35:47 +0000 (11:35 +0300)
commitd51b89a554bf138d5ded5e9e7e323af0ec5b895f
tree49a003df787157e608c9441010cd06b6595ee846
parent3c0d0ff7a0bb4f337beb99977e162a079d38d817
0028361: Visualization, TKV3d - buggy behavior of Transformation Persistence compiled on several Linux platforms in optimized mode

The patch fixes transformation persistence for various set of GCC compilers.
1) Optimized template-specialized operator /= for division (causes bugs)
   of NCollection_Vec4 was replaced with non-specialized version.
2) NCollection_Vec4::xyz() is not used since compiler uses modifiable-reference
   returning version, which invokes warning of possible strict-aliasing rules
   violation and leads to incorrect behavior of the reference.
src/Graphic3d/Graphic3d_TransformPers.hxx
tests/bugs/vis/bug28361 [new file with mode: 0644]