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

Disable by default CLING dynamic extension in named macro

    XMLWordPrintable

    Details

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

      All

      Description

      Dynamic extensions don't work properly and produces a lots of crashes which compromise the usability of ROOT 6.
      A very simple reproducible is to type (or add in a macro)

      auto h1 = new TH1D("h1","h1",nbins,0,1);

      which crashes in ROOT,if you do before

      root> .dynamicExtensions 0

      you get a clean error message

      ROOT_prompt_1:1:30: error: use of undeclared identifier 'nbins'
      auto h1 = new TH1D("h1","h1",nbins,0,1)

      We could discuss the support of them in un-named macro for some backward compatibility issues, but in named macro we don't need this feature.
      I see this as un urgent issue in order to have ROOT 6 usable for analysis.

      Lorenzo

        Attachments

          Activity

            People

            • Assignee:
              axel Axel Naumann
              Reporter:
              moneta Lorenzo Moneta
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: