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
Do not declare class in template instantiation; add missing header #6365
Conversation
The package contains two files, which cause Clang to abort (assert): - `PhysicsTools/PatUtils/plugins/SmearedJetProducer.cc` - `PhysicsTools/PatUtils/plugins/SmearedPATJetProducer.cc` After long investigation I stopped here: corrJetP4 = std::is_base_of<class PATJetCorrExtractor, Textractor>::value ? jetCorrExtractor_(jet, jetCorrLabel_.label(), jetCorrEtaMax_, &rawJetP4) : jetCorrExtractor_(jet, jetCorr.product(), jetCorrEtaMax_, &rawJetP4); `PATJetCorrExtractor` was nowhere to be found in the translation unit. We have a class declaration in template instantion. The patch removes such declaration and includes a header (from the same package), which declares and defines PATJetCorrExtractor. Resolves both Clang aborts. Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
A new Pull Request was created by @davidlt for CMSSW_7_3_X. Do not declare class in template instantiation; add missing header It involves the following packages: PhysicsTools/PatUtils @cmsbuild, @vadler, @nclopezo, @monttj can you please review it and eventually sign? Thanks. |
+1 |
This pull request is fully signed and it will be integrated in one of the next CMSSW_7_3_X IBs unless changes (tests are also fine). This pull request will be automatically merged. |
Do not declare class in template instantiation; add missing header
The package contains two files, which cause Clang to abort (assert):
PhysicsTools/PatUtils/plugins/SmearedJetProducer.cc
PhysicsTools/PatUtils/plugins/SmearedPATJetProducer.cc
After long investigation I stopped here:
PATJetCorrExtractor
was nowhere to be found in the translation unit.We have a class declaration in template instantion.
The patch removes such declaration and includes a header (from the same
package), which declares and defines
PATJetCorrExtractor
.Resolves both Clang aborts.
Signed-off-by: David Abdurachmanov David.Abdurachmanov@cern.ch