Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I see -fconstexpr-depth, -fconstexpr-cache-depth, -fconsexpr-fp-except, -fconstexpr-loop-limit, and -fconstexpr-ops-limit, but not -fconstexpr: https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/C_002b_002b-Di...

Where'd you see -fconstexpr?



Sorry. It is -fimplicit-constexpr, new in gcc12: https://gcc.gnu.org/gcc-12/changes.html


So that doesn't implicitly mark all functions as constexpr. It implicitly marks inline functions as constexpr. It weakens your point a tad, but I see now what you are getting at.


Yes sorry, I should have been more precise.

Of course you need the function body to actually do comptime evaluation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: