New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added noexcept(false) to module destructors for gcc 6 #14396
Conversation
For now, we will continue to allow module's destructors to throw exceptions. Explicitly added 'noexcept(false)' to base class destructors to silence warnings from gcc 6.
A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_8_1_X. It involves the following packages: FWCore/Framework @cmsbuild, @smuzaffar, @Dr15Jones, @davidlange6 can you please review it and eventually sign? Thanks. cms-bot commands are list here #13028 |
please test |
The tests are being triggered in jenkins. |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
-1 Tested at: 83f2802 You can see the results of the tests here: I found follow errors while testing this PR Failed tests: Build
I found an error when building: >> Compiling /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/EventGenerator/src/DQMHelper.cc >> Compiling /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/EventGenerator/src/TauDecay.cc >> Compiling /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/EventGenerator/src/TauDecay_CMSSW.cc >> Compiling /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/EventGenerator/src/CaloCellId.cc In file included from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/RecoParticleFlow/plugins/GenericBenchmarkAnalyzer.cc:1:0: /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/RecoParticleFlow/plugins/GenericBenchmarkAnalyzer.h:21:11: error: looser throw specifier for 'virtual GenericBenchmarkAnalyzer::~GenericBenchmarkAnalyzer() noexcept (false)' virtual ~GenericBenchmarkAnalyzer(); ^ In file included from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/RecoParticleFlow/plugins/GenericBenchmarkAnalyzer.h:11:0, from /build/cmsbuild/jenkins-workarea/workspace/ib-any-integration/CMSSW_8_1_X_2016-05-06-1100/src/Validation/RecoParticleFlow/plugins/GenericBenchmarkAnalyzer.cc:1: /cvmfs/cms-ib.cern.ch/week1/slc6_amd64_gcc530/cms/cmssw-patch/CMSSW_8_1_X_2016-05-06-1100/src/RecoParticleFlow/Benchmark/interface/GenericBenchmark.h:29:11: error: overriding 'virtual GenericBenchmark::~GenericBenchmark() noexcept' |
Because a module uses dual inheritance to GenericBenchmark and the base class for modules' use noexcept(false) we had to make GenericBenchmark's destructor just as loose.
Pull request #14396 was updated. @smuzaffar, @Dr15Jones, @cvuosalo, @cmsbuild, @slava77, @davidlange6 can you please check and sign again. |
please test |
The tests are being triggered in jenkins. |
Comparison not run due to Build errors (RelVals and Igprof tests were also skipped) |
The test failure appears to be a transient problem. From the logs it says
When I run the tests in my local area they pass fine. |
please test |
The tests are being triggered in jenkins. |
+1 |
+1 |
For now, we will continue to allow module's destructors to throw exceptions. Explicitly added 'noexcept(false)' to base class destructors to silence warnings from gcc 6.