[Bug c/106406] _Static_assert declaration can not be first of for-triplet

2022-09-04 Thread chumarshal at foxmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 --- Comment #4 from marshal --- (In reply to marshal from comment #0) > int main() > { > int i = 4; > for (_Static_assert (3, "This is a three"); i < 7; i++) { > i += 2; > } > } > > > Gcc can build successfully, but it doe

[Bug c/106406] _Static_assert declaration can not be first of for-triplet

2022-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 --- Comment #3 from Andrew Pinski --- One thing I noticed with clang is that it is the rejected inside the parser rather than later on with the semantic analysis meaning I think it was overlooked for clang's parser.

[Bug c/106406] _Static_assert declaration can not be first of for-triplet

2022-07-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/106406] _Static_assert declaration can not be first of for-triplet

2022-07-22 Thread rguenth at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106406 --- Comment #1 from Richard Biener --- it doesn't declare anything so why should it be invalid?