We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This program,
int main() { int *p; { int x = 1; p = &x; } (*p)--; }
when compiled as a C program, prints the message:
out-of-scope.c:7:3: warning: Referring to an object outside of its lifetime. (Undefined behavior)
However, when compiled as a C++ program, no error is printed and it gets stuck with
`readBytes-aux(_,_,_,_)_CPP-EXECUTION-IO`(loc(obj(#token("4","Int"),#token("4","Int"),auto(#token("0 ","Int"))),#token("3","Int")),#token("4","Int"),`.List`(.KList),tcpp(quals(`.Set`(.KList)),`.Set`(.K List),`int_CPP-TYPING-SYNTAX`(.KList)))
at the top of the k cell.
k
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This program,
when compiled as a C program, prints the message:
However, when compiled as a C++ program, no error is printed and it gets stuck with
at the top of the
k
cell.The text was updated successfully, but these errors were encountered: