Skip to content
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

Array size check: required in stack array, forbidden in parameter declaration #126

Open
ForNeVeR opened this issue May 28, 2022 · 2 comments
Labels
area:compiler Related to code compilation or type checking area:standard-support Related to the C standard support kind:feature New feature or request status:help-wanted Open for contributors

Comments

@ForNeVeR
Copy link
Owner

ForNeVeR commented May 28, 2022

See TODO[#126] in the code: array size should be required for stack array local declaration (like char[100] xxx;), and should be forbidden (or should it? check with the C standard, please) for a parameter declaration (like void foo(char[100] xxx);).

@ForNeVeR ForNeVeR added kind:feature New feature or request status:help-wanted Open for contributors area:standard-support Related to the C standard support area:compiler Related to code compilation or type checking labels May 28, 2022
@Griboedoff
Copy link
Contributor

looks like it you can declare function like this void foo(char x[100]) and it is equal to void foo(char x[])

@ForNeVeR
Copy link
Owner Author

looks like it you can declare function like this void foo(char x[100]) and it is equal to void foo(char x[])

Corresponds to my (fading) knowledge of C.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:compiler Related to code compilation or type checking area:standard-support Related to the C standard support kind:feature New feature or request status:help-wanted Open for contributors
Projects
None yet
Development

No branches or pull requests

2 participants