[Bug c++/119866] constant evaluation failure with trivial function

2025-04-18 Thread barry.revzin at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119866 --- Comment #3 from Barry Revzin --- Well even gcc 4.7.1 accepted this int main() { static_assert(__builtin_strlen("hi") == 2, "!"); } At this point lots of code relies on that working.

[Bug c++/119866] constant evaluation failure with trivial function

2025-04-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119866 --- Comment #2 from Andrew Pinski --- Though __builtin_strlen might not be the issue here...

[Bug c++/119866] constant evaluation failure with trivial function

2025-04-18 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119866 --- Comment #1 from Andrew Pinski --- I am not sure if __builtin_strlen is supposed to be callable from constexpr at all.