View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0028583 | Open CASCADE | OCCT:Coding | public | 2017-03-23 11:38 | 2017-10-23 09:10 |
| Reporter | bugmaster | Assigned To | kgv | ||
| Priority | normal | Severity | minor | ||
| Status | closed | Resolution | open | ||
| Target Version | 7.2.0 | Fixed in Version | 7.2.0 | ||
| Summary | 0028583: Coding Rules - eliminate GCC compiler warnings -Warray-bounds | ||||
| Description | Problem is reproduced on gcc version 6.x http://jenkins-test-08.nnov.opencascade.com/view/IR-2017-03-16/view/OCCT%20compile/job/IR-2017-03-16_IR-2017-03-16-OCCT-ARCH463-64-opt-compile/1/warnings19Result/package.-1086971438/
In file included from /OCCT/build/inc/NCollection_Array1.hxx:1:0,
from /OCCT/src/TColStd/TColStd_Array1OfReal.hxx:19,
from /OCCT/build/inc/TColStd_Array1OfReal.hxx:1,
from /OCCT/src/BSplCLib/BSplCLib.hxx:24,
from /OCCT/build/inc/BSplCLib.hxx:1,
from /OCCT/src/BSplCLib/BSplCLib.cxx:30:
/OCCT/src/NCollection/NCollection_Array1.hxx: In static member function 'static void BSplCLib::Trimming(Standard_Integer, Standard_Boolean, Standard_Integer, const TColStd_Array1OfReal&, const TColStd_Array1OfInteger&, const TColStd_Array1OfReal&, Standard_Real, Standard_Real, TColStd_Array1OfReal&, TColStd_Array1OfInteger&, TColStd_Array1OfReal&)':
/OCCT/src/NCollection/NCollection_Array1.hxx:215:40: warning: array subscript is below array bounds [-Warray-bounds]
myData = (TheItemType *) &theBegin - theLower;
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/OCCT/src/NCollection/NCollection_Array1.hxx:215:40: warning: array subscript is below array bounds [-Warray-bounds]
myData = (TheItemType *) &theBegin - theLower;
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
| ||||
| Steps To Reproduce | not required | ||||
| Tags | No tags attached. | ||||
| Test case number | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2017-03-23 11:38 | bugmaster | New Issue | |
| 2017-03-23 11:38 | bugmaster | Assigned To | => kgv |
| 2017-03-23 11:45 | bugmaster | Status | new => assigned |
| 2017-03-27 10:42 | kgv | Description Updated | |
| 2017-05-05 11:05 | kgv | Description Updated | |
| 2017-05-05 11:06 | kgv | Description Updated | |
| 2017-05-10 09:44 | kgv | Note Added: 0065795 | |
| 2017-05-10 09:44 | kgv | Note Edited: 0065795 | |
| 2017-05-10 09:45 | kgv | Summary | New compiler warning after integration fix for issue 28470 => Coding Rules - eliminate GCC compiler warnings -Warray-bounds |
| 2017-07-20 11:43 | kgv | Product Version | 7.3.0 => |
| 2017-07-20 11:43 | kgv | Target Version | 7.2.0 => 7.3.0 |
| 2017-10-23 09:09 |
|
Relationship added | duplicate of 0028978 |
| 2017-10-23 09:10 |
|
Note Added: 0071693 | |
| 2017-10-23 09:10 |
|
Status | assigned => closed |
| 2017-10-23 09:10 |
|
Fixed in Version | => 7.2.0 |
| 2017-10-23 09:10 |
|
Target Version | 7.3.0 => 7.2.0 |