-
Notifications
You must be signed in to change notification settings - Fork 274
CBMC C++ frontend doesn't support namespace attributes #2358
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
Comments
I'd much encourage you to create a PR with exactly this patch! The current C++ front-end is in a best-effort state, so we'll notice when we need more than the above patch when new tests come up! |
The C++ standard one is trickier -- want to always pass |
Really #2360 (Java instanceof)? |
Yes, we should always pass some |
Oops. #2362 |
Fixed via #2362. |
Excerpt from glibc 2.27:
The CBMC frontend however can't parse such a thing, as it doesn't expect attributes on namespaces. This causes tests that include
<cassert>
among other headers to fail.A change such as the following successfully hacks around the problem:
However I don't know enough about either the C++ grammar to say whether the attribute can occur in other places, or about the parser's structure to know whether a simple throw-away like that is sufficient.
The text was updated successfully, but these errors were encountered: