[Bug c/87447] Missing -Wconversion warning in implicit conversion of unsigned long long to double
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat Oct 9 17:22:04 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87447
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |egallager at gcc dot gnu.org
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to Manuel López-Ibáñez from comment #1)
> C++ warns:
>
> <source>:5:3: warning: conversion from 'long long unsigned int' to 'double'
> changes value from '9223372036854775809' to '9.2233720368547758e+18'
> [-Wfloat-conversion]
Hm, any idea what the difference is between the C and C++ frontends that causes
this warning to only be printed for C++?
More information about the Gcc-bugs
mailing list