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

Eric Gallager <egallager at gcc dot gnu.org> changed:

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

--- Comment #5 from Eric Gallager <egallager at gcc dot gnu.org> ---
This is one of the reasons -Wfloat-conversion exists: 

$ gcc -c -Wall -Wextra -Wfloat-conversion -Wdouble-promotion
-Wunsuffixed-float-constants -pedantic -O2 88892.c
88892.c: In function 'f':
88892.c:4:13: warning: conversion from 'double' to 'float' may change value
[-Wfloat-conversion]
   float f = d;
             ^
$

Reply via email to