[cling] Do not suppress all diagnostics during function lookup#20946
Draft
vepadulano wants to merge 2 commits intoroot-project:masterfrom
Draft
[cling] Do not suppress all diagnostics during function lookup#20946vepadulano wants to merge 2 commits intoroot-project:masterfrom
vepadulano wants to merge 2 commits intoroot-project:masterfrom
Conversation
This is the first part of root-project#12449 Co-authored-by: Josh Bendavid <Josh.Bendavid@cern.ch>
Use std::array to better handle the case of `sizeof(ColumnTypes)... == 0`.
Previously, errors such as this one could be seen:
```
/Users/vpadulan/Programs/rootproject/rootbuild/bendavid-template-1-relwithdebinfo/include/RooAbsDataHelper.h:146:25: error: cannot deduce actual type for variable '__range2' with type 'auto &&' from initializer list
for (auto &&val : {static_cast<double>(values)...}) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/vpadulan/Programs/rootproject/rootbuild/bendavid-template-1-relwithdebinfo/include/ROOT/RDF/RAction.hxx:117:85: note: in instantiation of function template specialization 'RooAbsDataHelper<RooDataSet>::Exec<>' requested here
ROOT::Internal::RDF::CallGuaranteedOrder{[&](auto &&...args) { return fHelper.Exec(slot, args...); },
^
[...]
/Users/vpadulan/Programs/rootproject/rootbuild/bendavid-template-1-relwithdebinfo/include/ROOT/RDF/RVariedAction.hxx:160:24: error: no matching member function for call to 'Exec'
fHelpers[varIdx].Exec(slot, GetValueChecked<ColTypes>(slot, varIdx, ReaderIdxs, entry)...);
~~~~~~~~~~~~~~~~~^~~~
[...]
/Users/vpadulan/Programs/rootproject/rootbuild/bendavid-template-1-relwithdebinfo/include/ROOT/RDF/RInterface.hxx:3579:14: note: in instantiation of function template specialization 'ROOT::RDF::RInterfaceBase::CreateAction<ROOT::Internal::RDF::ActionTags::Book, RooDataSet, ROOT::Detail::RDF::RLoopManager, RooAbsDataHelper<RooDataSet>, 0>' requested here
return CreateAction<RDFInternal::ActionTags::Book>(/*columns=*/{}, resPtr, hPtr, fProxiedPtr, 0u);
^
```
Hinting at the fact that a `CreateAction` specialization would try to instantiate the helper to `Book` without columns.
1 task
Member
Author
|
This PR is currently blocked by #20952 |
Test Results 22 files 22 suites 3d 23h 39m 25s ⏱️ For more details on these failures, see this check. Results for commit 25e1e2f. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the first part of #12449
I'm still trying to understand how to create a test. I used the original reproducer
And ran it with
root, but I see the same errors printed both after this changes and with ROOT master