Unverified Commit caef9e26 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Preprocessor: fix crash in DataTree::operator=() with model local variables

Also add a regression test.

Closes: #1782
parent 8ac65cbd
Subproject commit e3c716faba552bb59146b3b83d6c2fef5e650299
Subproject commit 7b3df21f11b81c83938abd982575260ab61c993a
......@@ -16,8 +16,14 @@ theta = 2.95;
phi = 0.1;
/* The following statement is a regression test for #1782.
Here the “foo” variable definition depends on “bar”, but the symbol ID of
“foo” will be smaller than the symbol ID of “bar”. */
model_local_variable foo $\text{foo}$;
#foo = (exp(b)*c)/(exp(b(+1))*c(+1));
#bar = exp(b)*c;
#foo = bar/(exp(b(+1))*c(+1));
k = beta*(foo
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment