-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
root REPL problem with unsigned num assigned to a not declared item #6812
Comments
Hello @Asxcvbn, I have reproduced this bug and already have a fix for it. However, because we are currently upgrading to LLVM 9, I will wait until then to apply the fix -this will happen at some point in January-. Cheers, |
Hi @Asxcvbn, The patch has been sent for inclusion in the LLVM 9 upgrade branch. This issue will be closed once this branch is merged into Cheers. |
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
Recently, the |
In some scenarios, initialization of variables declared by AutoSynthesizer does not work as expected (more information on the GH issue), e.g. ``` root [2] unsigned int c (unsigned int) 0 root [3] d=c Error in <TRint::HandleTermInput()>: std::runtime_error caught: >>> Interpreter expected relocatable expression ``` This is because the generated VarDecl initializer is missing a LValueToRValue conversion, where required by the C++ standard.
Describe the bug
in root interpreter, we may:
and then
root [1] b=a;
and it returns a number
which is totally unexpected.
Expected behavior
we expect to yield:
To Reproduce
code generally described above.
you just need to:
start root interpretor
$root
and run the lines in it
note other unsigned integer types also bug.
Setup
splash screen
ROOT 6.22/02 on CentOS7 x86_64, at CVMFS
and
ROOT 6.20/06 on CentOS7/gcc x86_64, installed by system admin in my server
ROOT 6.22/02 on windows/MSVC x86_64, binary download
did not tested on current HEAD.
strangely, older version, like ROOT5.34/09 or ROOT 5.34/36 on linuxx8664gcc, has no such problem.
Additional context
The text was updated successfully, but these errors were encountered: