[ROOT-6802] Disable by default CLING dynamic extension in named macro Created: 08/Oct/14  Updated: 18/Nov/14  Resolved: 18/Nov/14

Status: Closed
Project: ROOT
Component/s: Cling
Affects Version/s: 6.02/01
Fix Version/s: 6.04.00, 6.02/02

Type: Bug Priority: Blocker
Reporter: Lorenzo Moneta Assignee: Axel Naumann
Resolution: Fixed Votes: 0
Labels: None




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.


Generated at Fri May 29 22:19:34 CEST 2020 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.