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
Compile error with gcc 4.8.2 #142
Comments
Did notice it too, in the Travis CI output. Quite odd. |
Here's those two macros expanded: (*fiber->stackTop++ = (*(fiber->stackTop - 1))) Might it be undefined due to the |
Yeah, my mistake. It's fixed now. :) For some reason, clang doesn't complain about it, so I didn't catch this locally. |
@zeckalpha I think it might be the |
Neither MSC (with the default settings), nor Cppcheck complains about it. It is due to the post increment operator, @zeckalpha is right. The evaluation order of the subexpressions is not defined (and mostly compiler dependant), and the post increment side effect could affect the outcome. (l-value subexpressions are not necessarily evaluated after the r-value ones) |
Using gcc 4.8.2 on Ubuntu 14.04.
The text was updated successfully, but these errors were encountered: