Skip to content

Ensure that compound literals with array type have checked type in checked scopes. #394

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

Closed
secure-sw-dev-bot opened this issue Jan 16, 2022 · 1 comment

Comments

@secure-sw-dev-bot
Copy link

This issue was copied from checkedc/checkedc-clang#395


A compound literal with array type has the form (T[n]) { e1, e2, e3, ... }. We need to make sure that the array type ends up being checked in a checked scope.

We can either require (1) that the array type be completely checked or (2) convert any unchecked array type to the corresponding checked array type and verify that the resulting type is completely checked. I am leaning toward the second option because it'll be less typing for programmers.

@secure-sw-dev-bot
Copy link
Author

Comment from @dtarditi:

Completed by PR #396.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant