4 ms·
I see -fconstexpr-depth, -fconstexpr-cache-depth, -fconsexpr-fp-except, -fconstexpr-loop-limit, and -fconstexpr-ops-limit, but not -fconstexpr: https://gcc.gnu.
by cbsmith 4y ago
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-Dialect-Options.html#C_002b_002b-Dialect-Options https://gcc.gnu.org/onlinedocs/gcc-12.2.0/gcc/C_002b_002b-Di...
Where'd you see -fconstexpr?
- gpderetta 4y agoSorry. It is -fimplicit-constexpr, new in gcc12: https://gcc.gnu.org/gcc-12/changes.html https://gcc.gnu.org/gcc-12/changes.html
- cbsmith 4y agoSo 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.
- gpderetta 4y agoYes sorry, I should have been more precise. Of course you need the function body to actually do comptime evaluation.