Skip to content
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

Improper vector syntax generates "c++ exception (unknown reason)" #2458

Closed
davharris opened this issue Jan 13, 2018 · 2 comments
Closed

Improper vector syntax generates "c++ exception (unknown reason)" #2458

davharris opened this issue Jan 13, 2018 · 2 comments

Comments

@davharris
Copy link

davharris commented Jan 13, 2018

Summary:

Attempting to compile the following (invalid) Stan program produces an error with c++ exception (unknown reason)

parameters {
  vector v[4];
}

(The [4] should occur immediately after vector, not after v).

Current Output:

> stanc(model_code  = "parameters{vector c[4]}")
Error in stanc(model_code = "parameters{vector c[4]}") : 
  c++ exception (unknown reason)

Expected Output:

A more helpful error message, including the line number and (ideally) a description of the invalid syntax.

Current Version:

Rstan v2.17.2

@davharris
Copy link
Author

Wait, maybe something else is wrong. Closing until I figure it out... sorry for any inconvenience

@davharris
Copy link
Author

Yeah, this is actually because of stan-dev/rstan#431, not a Stan problem. Again, sorry for cluttering up the issue queue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant