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
It does not compile, because i is not declared. Also the call to next() is omitted.
test.cpp: In function ‘int main()’:
test.cpp:11:27: error: ‘i’ was not declared in this scope
11 | while(static_cast<bool>(i)) {
| ^
The expected result would be, for example, to create a local scope and a variable in the local scope (similar to what compiler does) and to not omit the call to next(). Something like this:
Example:
The generated code is:
It does not compile, because
i
is not declared. Also the call tonext()
is omitted.The expected result would be, for example, to create a local scope and a variable in the local scope (similar to what compiler does) and to not omit the call to
next()
. Something like this:The text was updated successfully, but these errors were encountered: