[BUG][PATCH] Missing parentheses around trigraph operator ?:

Hello,

A thorough review of compiler warnings emitted when building OpenCascade exhibits bugs in the following files:
ros/src/Aspect/Aspect_MarkMapEntry.cxx
ros/src/Aspect/Aspect_TypeMapEntry.cxx
ros/src/Aspect/Aspect_WidthMapEntry.cxx
ros/src/TDataStd/TDataStd_ExtStringArray.cxx
ros/src/TDataStd/TDataStd_IntPackedMap.cxx
ros/src/TDataStd/TDataStd_IntegerArray.cxx
ros/src/TDataStd/TDataStd_RealArray.cxx

A patch is attached, all fixes are similar to this one:
--- a/src/TDataStd/TDataStd_RealArray.cxx
+++ b/src/TDataStd/TDataStd_RealArray.cxx
@@ -242,7 +242,7 @@ Standard_OStream& TDataStd_RealArray::Dump (Standard_OStream& anOS) const
for(i = lower; i anOS Value(i);
}
- anOS + anOS anOS return anOS;
}

Forum supervisor's picture

Hello, Denis,
I would like to inform you that this problem has been checked and reproduced.
A corresponding issue with ID = OCC22685 has been registered.
We will try to fix the problem in future OCCT releases. You will be able to see later if the issue is resolved by checking the references to the specified ID in OCCT Release Notes. The analysis of this issue will take some time depending on our technical capability and availability of resources.
Regards.