[Bug c/85182] _Static_assert is less than useful in a static inline

2018-04-03 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85182 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org --- Comment #5

[Bug c/85182] _Static_assert is less than useful in a static inline

2018-04-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85182 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/85182] _Static_assert is less than useful in a static inline

2018-04-03 Thread ajax at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85182 Adam Jackson changed: What|Removed |Added Status|RESOLVED|UNCONFIRMED Resolution|INVALID

[Bug c/85182] _Static_assert is less than useful in a static inline

2018-04-03 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85182 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c/85182] _Static_assert is less than useful in a static inline

2018-04-03 Thread joseph at codesourcery dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85182 --- Comment #1 from joseph at codesourcery dot com --- This is how static assertions are defined in C11, not a bug in GCC: it's a constraint violation if the constant expression compares equal to 0, regardless of the context in which the declar