[Bug tree-optimization/95769] Constant expression in inline function not optimized

2020-06-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95769 --- Comment #4 from Jakub Jelinek --- And, in the compiler the C++ constant evaluation is something done only in the C++ FE, while you are looking for IPA constant propagation and based on that performing the C++ FE constant evaluation because th

[Bug tree-optimization/95769] Constant expression in inline function not optimized

2020-06-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95769 --- Comment #3 from Jakub Jelinek --- (In reply to John Simon from comment #2) > (In reply to Jakub Jelinek from comment #1) > > If you want to ensure a function is evaluated at compile time, it needs to > > be either C++20 consteval, or you need

[Bug tree-optimization/95769] Constant expression in inline function not optimized

2020-06-19 Thread gcc at mailinator dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95769 --- Comment #2 from John Simon --- (In reply to Jakub Jelinek from comment #1) > 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,

[Bug tree-optimization/95769] Constant expression in inline function not optimized

2020-06-19 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95769 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1