-
Notifications
You must be signed in to change notification settings - Fork 15.4k
Closed
Labels
c23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partydiverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issue
Description
/*
* (c) Copyright 2016-2021 by Solid Sands B.V.,
* Amsterdam, the Netherlands. All rights reserved.
* Subject to conditions in the RESTRICTIONS file.
*/
int main()
{
int i = 4;
for (_Static_assert (3, "This is a three"); i < 7; i++) {
i += 2;
}
}clang test.c
test.c:4:10: error: expected identifier or '('
for (_Static_assert (3, "This is a three"); i < 7; i++) {
^
test.c:4:49: error: expected ';' in 'for' statement specifier
for (_Static_assert (3, "This is a three"); i < 7; i++) {
^
2 errors generated.
But gcc can build successfully, is it clang issue?
Metadata
Metadata
Assignees
Labels
c23clang:frontendLanguage frontend issues, e.g. anything involving "Sema"Language frontend issues, e.g. anything involving "Sema"confirmedVerified by a second partyVerified by a second partydiverges-from:gccDoes the clang frontend diverge from gcc on this issueDoes the clang frontend diverge from gcc on this issue