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

[dcl.array] Arrays of unknown bound are allowed in function parameters. #4419

Closed
wants to merge 1 commit into from

Conversation

jensmaurer
Copy link
Member

Fixes #4387

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 14, 2020

@jensmaurer: so you're sure that there are cases left now where arrays of unknown bound aren't allowed?

@jensmaurer
Copy link
Member Author

jensmaurer commented Dec 14, 2020

Hm... Maybe the phrasing is still too vague to properly handle

void f(C<sizeof(T[])> x);

(This isn't allowed, because we're applying sizeof to an incomplete type, but the phrasing "in a function parameter" might suggest it's giving permission to write something like that.)

@tkoeppe
Copy link
Contributor

tkoeppe commented Dec 15, 2020

Good find. OK, let's think about this some more.

@jensmaurer jensmaurer closed this Dec 15, 2020
@jensmaurer jensmaurer deleted the c21 branch December 15, 2020 16:31
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

Successfully merging this pull request may close these issues.

[dcl.array] p.7 may be outdated
2 participants