[Bug c/119381] -ftrivial-auto-var-init=pattern vs VLA inside a struct

2025-03-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119381 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #6

[Bug c/119381] -ftrivial-auto-var-init=pattern vs VLA inside a struct

2025-03-20 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119381 --- Comment #7 from Jakub Jelinek --- Or in C23 constexpr int size = 4096;

[Bug c/119381] -ftrivial-auto-var-init=pattern vs VLA inside a struct

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

[Bug c/119381] -ftrivial-auto-var-init=pattern vs VLA inside a struct

2025-03-19 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119381 --- Comment #4 from Andrew Pinski --- So as I mentioned on IRC, clang implements a slightly different extension compared to GCC. clang decides that size is a constant integer expression handles it that way and gives a warning about it: ``` :5:22