| Issue |
56471
|
| Summary |
_Static_assert declaration can not be first of for-triplet
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
chumarshal1
|
`int main()
{
int i = 4;
for (_Static_assert (3, "This is a three"); i < 7; i++) {
i += 2;
}
}`
`clang test.cpp -std=c++11
test.cpp:4:10: error: expected _expression_
for (_Static_assert (3, "Three is a go"); i < 7; i++) {
^
1 error generated.`
But gcc can build successfully , is it clang issue?
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs