You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now stanc3 will not compile the example in the description:
Syntax error in 'test.stan', line 16, column 2 to column 8, parsing error:
-------------------------------------------------
14: real v;
15: print("In transformed parameters");
16: foo(v)
^
17: }
18: model {
-------------------------------------------------
Ill-formed phrase. Found expression. There are many options to continue the phrase after this: "~", "[", "]" or an infix or postfix operator.
Summary:
Currently, non-returning function calls without semi-colon are allowed as statements. This seems like a bug in the parser.
Description:
The requirement that statements end in a semi-colon does not seem to be enforced for non-returning function calls.
Reproducible Steps:
Compile the following model
Current Output:
Compiler does not complain.
Expected Output:
Should throw error as foo(v) is not followed by semi-colon.
Current Version:
v2.18.0
The text was updated successfully, but these errors were encountered: