This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/35592] Want attribute to enable precision loss warning


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]