-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Open
Labels
accepts-invalidcclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"diverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issue
Description
Clang incorrectly rejects the following statement pre-C23 with -pedantic-errors:
for(_Static_assert(1,"");0;);
This is valid, yet Clang rejects it anyways. Additionally, Clang incorrectly allows the following:
for (enum fred { jim, sheila = 10 } i = jim; i < sheila; i++);
This is invalid and is mentioned specifically in DR277.
Metadata
Metadata
Assignees
Labels
accepts-invalidcclang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"diverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issue