View Issue Details

IDProjectCategoryView StatusLast Update
0030846CommunityOCCT:Foundation Classespublic2019-09-07 16:26
ReporterBenjaminBihler Assigned Tobugmaster  
PrioritynormalSeveritytrivial 
Status closedResolutionfixed 
PlatformAOSL 
Product Version6.5.1 
Target Version7.4.0Fixed in Version7.4.0 
Summary0030846: Foundation Classes - StorageInfo violates the C++ One Definition Rule
DescriptionWhen building with link-time optimization (-flto), g++ warns that the struct StorageInfo is defined both in OSD_MAllocHook.cxx:250 and in NCollection_BaseAllocator.cxx:72. This violates the C++ One Definition Rule. Therefore the structures should be merged or renamed.
TagsNo tags attached.
Test case numberNot required

Activities

git

2019-09-04 18:45

administrator   ~0086751

Branch CR30846 has been created by kgv.

SHA-1: 34d19c2485b56b359f5d3f75c621b3ce8b3d159f


Detailed log of new commits:

Author: kgv
Date: Wed Sep 4 18:42:42 2019 +0300

    0030846: Foundation Classes - StorageInfo violates the C++ One Definition Rule
    
    Local definitions have been put into anonymouse namespace within files
    OSD_MAllocHook.cxx and NCollection_BaseAllocator.cxx.

kgv

2019-09-04 23:06

developer   ~0086759

Patch is ready for review.

http://jenkins-test-12.nnov.opencascade.com:8080/view/CR30846-master-KGV/

abv

2019-09-05 04:44

manager   ~0086763

No remarks, please integrate

bugmaster

2019-09-05 18:17

administrator   ~0086811

Combination -
OCCT branch : CR30846
master SHA - 34d19c2485b56b359f5d3f75c621b3ce8b3d159f
5f5b1aed1c6e139bbd34314eca77ae7abcd8895c
Products branch : master SHA - 34e9bf11c6b525830b5dee35839707da81e7d1ab
was compiled on Linux, MacOS and Windows platforms and tested in optimize mode.

Number of compiler warnings:
No new/fixed warnings

Regressions/Differences/Improvements:
No regressions/differences

CPU differences:
Debian80-64:
OCCT
Total CPU difference: 16200.500000000076 / 16167.270000000033 [+0.21%]
Products
Total CPU difference: 10489.310000000056 / 10484.930000000048 [+0.04%]
Windows-64-VC14:
OCCT
Total CPU difference: 18288.9375 / 18256.515625 [+0.18%]
Products
Total CPU difference: 12130.375 / 12168.265625 [-0.31%]


Image differences :
No differences that require special attention

Memory differences :
No differences that require special attention

git

2019-09-07 16:26

administrator   ~0086934

Branch CR30846 has been deleted by inv.

SHA-1: 34d19c2485b56b359f5d3f75c621b3ce8b3d159f

Related Changesets

occt: master 9eefb360

2019-09-04 15:42:42

kgv


Committer: bugmaster Details Diff
0030846: Foundation Classes - StorageInfo violates the C++ One Definition Rule

Local definitions have been put into anonymouse namespace within files
OSD_MAllocHook.cxx and NCollection_BaseAllocator.cxx.
Affected Issues
0030846
mod - src/NCollection/NCollection_BaseAllocator.cxx Diff File
mod - src/OSD/OSD_MAllocHook.cxx Diff File

Issue History

Date Modified Username Field Change
2019-07-17 11:55 BenjaminBihler New Issue
2019-07-17 11:55 BenjaminBihler Assigned To => abv
2019-09-04 18:45 git Note Added: 0086751
2019-09-04 23:06 kgv Note Added: 0086759
2019-09-04 23:06 kgv Severity minor => trivial
2019-09-04 23:06 kgv Status new => resolved
2019-09-04 23:06 kgv Product Version => 6.5.1
2019-09-05 04:44 abv Note Added: 0086763
2019-09-05 04:44 abv Assigned To abv => bugmaster
2019-09-05 04:44 abv Status resolved => reviewed
2019-09-05 18:15 bugmaster Test case number => Not required
2019-09-05 18:17 bugmaster Note Added: 0086811
2019-09-05 18:17 bugmaster Status reviewed => tested
2019-09-07 11:38 bugmaster Changeset attached => occt master 9eefb360
2019-09-07 11:38 bugmaster Status tested => verified
2019-09-07 11:38 bugmaster Resolution open => fixed
2019-09-07 16:26 git Note Added: 0086934