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

Eyal Rozenberg <eyalroz1 at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Prpose compiler warning     |Propose compiler warning
                   |when ceil functions used on |when ceil/ceilf used on
                   |integral value              |integral value

--- Comment #2 from Eyal Rozenberg <eyalroz1 at gmx dot com> ---
This also applies to C++, although in C++ you might be doing this in a
templated context, e.g. 

T x = get_x();
auto y = ceil(x); 

which is fine for floating-point T's and fishy for integral T's.

Reply via email to