https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95769

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If you want to ensure a function is evaluated at compile time, it needs to be
either C++20 consteval, or you need to evaluate it in constant expression
context, e.g. constexpr auto x = expensive_function(10000);

Reply via email to