public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111842] New: Unable to disable conversion warning in case of _Float16
@ 2023-10-17  2:44 n.deshmukh at samsung dot com
  2023-10-17  2:50 ` [Bug c++/111842] " pinskia at gcc dot gnu.org
                   ` (16 more replies)
  0 siblings, 17 replies; 18+ messages in thread
From: n.deshmukh at samsung dot com @ 2023-10-17  2:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111842
           Summary: Unable to disable conversion warning in case of
                    _Float16
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: n.deshmukh at samsung dot com
  Target Milestone: ---

The following code when compiled with gcc-13.1 results in the following output:

int main() {
    _Float16 a = 5.0;
    float b = a;
     return 0;
}

<source>: In function 'int main()':
<source>:2:18: warning: converting to '_Float16' from 'double' with greater
conversion rank
    2 |     _Float16 a = 5.0;
      |                  ^~~
Compiler returned: 0

There is no way to disable this warning as it is not classified under any -W
categories. Is there a way to disable this warning without using an explicit
cast?

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-11-14 10:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-17  2:44 [Bug c++/111842] New: Unable to disable conversion warning in case of _Float16 n.deshmukh at samsung dot com
2023-10-17  2:50 ` [Bug c++/111842] " pinskia at gcc dot gnu.org
2023-10-17  2:55 ` pinskia at gcc dot gnu.org
2023-10-17  2:57 ` pinskia at gcc dot gnu.org
2023-10-17  3:41 ` egallager at gcc dot gnu.org
2023-10-17  4:18 ` n.deshmukh at samsung dot com
2023-10-17  4:30 ` pinskia at gcc dot gnu.org
2023-10-17  4:43 ` n.deshmukh at samsung dot com
2023-10-17  4:45 ` pinskia at gcc dot gnu.org
2023-10-17  4:52 ` n.deshmukh at samsung dot com
2023-10-17  7:35 ` egallager at gcc dot gnu.org
2023-10-17 15:10 ` redi at gcc dot gnu.org
2023-10-17 15:11 ` redi at gcc dot gnu.org
2023-10-17 23:35 ` n.deshmukh at samsung dot com
2023-10-17 23:42 ` pinskia at gcc dot gnu.org
2023-11-14  9:55 ` cvs-commit at gcc dot gnu.org
2023-11-14 10:16 ` xry111 at gcc dot gnu.org
2023-11-14 10:29 ` redi at gcc dot gnu.org

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).