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

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> ---
For user vars we just try to silently non-manifestly-constant-evaluated
constant evaluate initializers.
Would this request be just try to do the same on TARGET_EXPRs, or try to
constant evaluate any subexpression of any expression?
E.g. shall
constexpr int foo (int x) { return x; }
int bar ();
int a = foo (42) + bar ();
be simplified to 42 + bar (); already in the FE (rather than say through
inlining)?
The whole initializer (but could be any expression inside of a function body
too) isn't a constant expression, just parts of it...

Reply via email to