Closed
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?