Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-8897

cling cannot print non-fully qualified types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.14/00
    • Component/s: None
    • Labels:
      None
    • Environment:

      all

      Description

      Opening an issue upon Axel's request.
      The reproducer:

      root [0] ROOT::Experimental::TDataFrame d(10)
      (ROOT::Experimental::TDataFrame &) A data frame that will create 10 entries
       
      root [1] auto dd = d.Define("a", []{ return 1;})
      input_line_15:2:58: error: template argument for template type parameter must be a type
       cling::printValue(*(ROOT::Experimental::TDF::TInterface<TCustomColumnBase>**)0x7fffccad0e80);
                                                               ^~~~~~~~~~~~~~~~~
      /home/eguiraud/ROOT/root_build/include/ROOT/TDFInterface.hxx:99:23: note: template parameter is declared here
         template <typename T>
                            ^
      ERROR in cling's callPrintValue(): cannot pass value!
      (ROOT::Experimental::TDF::TInterface<TCustomColumnBase> &) ERROR in cling's callPrintValue(): missing value string.
      root [2] 

      Adding `;` at the end of the second line avoids printing and therefore avoids the error.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              axel Axel Naumann
              Reporter:
              eguiraud Enrico Guiraud
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: