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

Compiles invalid cpp code when using non-existing variable name #23

Open
havahol opened this issue May 15, 2014 · 1 comment
Open

Compiles invalid cpp code when using non-existing variable name #23

havahol opened this issue May 15, 2014 · 1 comment
Labels

Comments

@havahol
Copy link
Contributor

havahol commented May 15, 2014

Stumbled upon the following bug. Writing Equelle code

Output("max of u", MaxReduce(u))

when no variable u has been declared, produce the following c++ code

er.output("max of u", er.maxReduce());

which gives a C++ compile time error (maxReduce needs a CollOfScalar parameter). Equelle compiler should notice that we use an undeclared variable.

@havahol havahol added the bug label May 15, 2014
@atgeirr
Copy link
Member

atgeirr commented May 15, 2014

Thanks for noticing. Currently function call arguments are not checked, which is a significant lack. I consider this a high-priority bug.

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

No branches or pull requests

2 participants