"use of undeclared identifier" in cling crashed the ROOT 6.17/01


ROOT Version: 6.17/01
Platform: Windows 10
_Compiler:_VS 2019


Dear you,
Some time I type some wrong word in root cling, the root will just crashed after giving an error message. As shown in the following picture:

image

please help!
Thank you!
Han

Hi,

We’ll have to fix this in ROOT. There is nothing you can do to avoid this for the time being (beside not typing wrong names…)

Cheers, Bertrand.

Ok. Thank you very much for the timely reply.

Best Wishes!
Han

1 Like

Just to clearly state the probably obvious: that issue exists only in the ROOT windows preview.

Axel

And a related Jira Issue has been created

1 Like

A comment:

root [0] TFile *f = new TFile("J20.root",UPDATE);
input_line_9:2:26: error: use of undeclared identifier 'UPDATE'
 (new TFile(("J20.root", UPDATE)))

The ROOT will crash while I forget the double quotation marks “”.

Thank you!
Han

Well, ok, thanks, but this is exactly the same issue… You can find thousands of examples, they will all make ROOT crash…

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.