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

Autoparse error for outlined template functions

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.08/00
    • Fix Version/s: 6.10/00, 6.08/02
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Linux

      Description

      Run make in attachment and we'll get

      Processing testcmsWrapper.C...
      cmswrapper_rflx dictionary payload:9:35: error: nested name specifier 'Wrapper<T>::' for declaration does not refer into a
            class, class template or class template partial specialization
         template <class T> Wrapper<T>::Wrapper(): t{} {}
                            ~~~~~~~~~~~~^
      Error in <TInterpreter::AutoParse>: Error parsing payload code for class edm::Wrapper with content:
       
      #line 1 "cmswrapper_rflx dictionary payload"
       
      #ifndef G__VECTOR_HAS_CLASS_ITERATOR
        #define G__VECTOR_HAS_CLASS_ITERATOR 1
      #endif
       
      #define _BACKWARD_BACKWARD_WARNING_H
      namespace edm {
         template <class T> struct Wrapper { T* t; Wrapper(); };
         template <class T> Wrapper<T>::Wrapper(): t{} {}
      }
       
      #undef  _BACKWARD_BACKWARD_WARNING_H
       
      make: *** [all] Error 1

      This reproduces an error of CMS in their unitTestLogs/DataFormats/FWLite https://cmssdt.cern.ch/SDT/cgi-bin/buildlogs/slc6_amd64_gcc530/CMSSW_8_1_ROOT6_X_2016-11-01-2300/unitTestLogs/DataFormats/FWLite

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              axel Axel Naumann
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: