Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
High
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 6.10/00
-
Component/s: Cling
-
Labels:None
-
Environment:
All
-
Development:
Description
As showered in the simple example above, Cling does not set the variable n, which has not been declared to the correct value.
void test() {
|
|
for (int i = 0; i < 100; ++i) {
|
// int n = 0; // to get correct result
|
n = 0;
|
for (int j = 0; j < 10; ++j)
|
n++;
|
|
std::cout << n << " ";
|
}
|
}
|
Lorenzo