[Bug c/118106] Erroneous warning: variably modified '<variable>' at file scope

jsm28 at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Dec 18 19:03:57 GMT 2024


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

Joseph S. Myers <jsm28 at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Joseph S. Myers <jsm28 at gcc dot gnu.org> ---
Floating constants in integer constant expressions must be immediate operands
of casts to integer types; you can't do any floating-point arithmetic on them
(such as dividing by 2) first.


More information about the Gcc-bugs mailing list