The LDPL compiler does not validate the format of IN x SOLVE ... statements.
This can lead to problems — for example, it is currently possible to write:
Which inevitably results in compilation errors when the generated C++ code is compiled.
I believe some form of syntax checking should be implemented for IN x SOLVE ... statements. Or, at the very least, this limitation should be clearly mentioned in the docs so users are aware that malformed expressions can lead to C++ compilation errors.