Skip to content

CWG3008 [diff.dcl] Incompatibility with C on declaration of "void object" #682

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

Open
frederick-vs-ja opened this issue Mar 13, 2025 · 1 comment

Comments

@frederick-vs-ja
Copy link

Full name of submitter (unless configured in github; will be published with the issue): Jiang An

Reference (section label): [diff.dcl]

Link to reflector thread (if any):

Issue description:

CWG2475 clarified that a non-defining declaration of (non-existent) void object like extern void x; is ill-formed. But WG14 N3409 seemed to confirmed that such declaration is valid in C.

Should we add an entry in [diff.dcl] for this?

Suggested resolution:

@jensmaurer
Copy link
Member

CWG3008

@jensmaurer jensmaurer changed the title [diff.dcl] Incompatibility with C on declaration of "void object" CWG3008 [diff.dcl] Incompatibility with C on declaration of "void object" Mar 14, 2025
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

2 participants