This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/80756] missing diagnostic on non-constant expression with function call such as fabs or fma in initializer


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

nsz at gcc dot gnu.org changed:

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

--- Comment #3 from nsz at gcc dot gnu.org ---
fabs and fma identifiers are reserved for the implementation and it is valid to
treat them as constant expression in initializers based on c99 6.6p10

i think the gcc behaviour is reasonable.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]