https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87405
Bug ID: 87405 Summary: Implement -Wliteral-conversion Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Blocks: 87403 Target Milestone: --- Also coming from LLVM, it found a real issue in GCC: gcc/ipa-fnsummary.c:2745:54:Value Conversion Issue: implicit conversion from 'double' to 'int64_t' (aka 'long') changes value from 0.99 to 0: -Wliteral-conversion I would consider adding that to GCC as well. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87403 [Bug 87403] Issues that suggest a new warning