[Bug c++/102876] GCC fails to use constant initialization even when it knows the value to initialize

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Oct 21 12:37:26 GMT 2021


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |missed-optimization
   Last reconfirmed|                            |2021-10-21
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Why not just make the function constexpr though?


More information about the Gcc-bugs mailing list