public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/93589] Template instantiation creates a conversion warning when it should not
       [not found] <bug-93589-4@http.gcc.gnu.org/bugzilla/>
@ 2020-03-18 19:18 ` jrdowning at yahoo dot com
  0 siblings, 0 replies; only message in thread
From: jrdowning at yahoo dot com @ 2020-03-18 19:18 UTC (permalink / raw)
  To: gcc-bugs

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

John Downing <jrdowning at yahoo dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jrdowning at yahoo dot com

--- Comment #11 from John Downing <jrdowning at yahoo dot com> ---
I think I understand, but one more question.  The "*" operator promotes the RHS
to int, then it converted back to short.  But you say the warning is a "false
positive".  So if it's a "false positive", then why isn't that false positive
suppressed?  I know that clang does not show an error for the exact same code,
so clearly it is compliant with the C++ standard to do so.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-18 19:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-93589-4@http.gcc.gnu.org/bugzilla/>
2020-03-18 19:18 ` [Bug c++/93589] Template instantiation creates a conversion warning when it should not jrdowning at yahoo dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).