This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35592] Want attribute to enable precision loss warning
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Feb 2018 09:05:30 +0000
- Subject: [Bug c/35592] Want attribute to enable precision loss warning
- Auto-submitted: auto-generated
- References: <bug-35592-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35592
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-02-20
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #7 from Eric Gallager <egallager at gcc dot gnu.org> ---
(In reply to felix-gcc from comment #2)
> I am aware of -Wconversion, but I am not interested in ALL conversion
> truncations. Truncation happens to be a security issue in a few cases, in
> many other cases it would just be a regular bug. My suggestions aims to
> isolate the security relevant cases, for the rest we have -Wconversion.
>
Confirming, being able to be more selective with which truncations -Wconversion
applies to would be useful.