public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/105509] New: [compatibility] f16 suffix not supported in C++ mode - unable to find numeric literal operator ‘operator""f16’
@ 2022-05-06 15:54 thiago at kde dot org
  2022-05-06 17:40 ` [Bug c++/105509] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: thiago at kde dot org @ 2022-05-06 15:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105509
           Summary: [compatibility] f16 suffix not supported in C++ mode -
                    unable to find numeric literal operator
                    ‘operator""f16’
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: thiago at kde dot org
  Target Milestone: ---

The following code:

_Float16 f = 12.34f16;

compiles as C in GCC12, and as both C and C++ with Clang 14 and ICX 2022.

But with GCC 12 as C++, it generates:

error: unable to find numeric literal operator ‘operator""f16’

See also https://wg21.link/p1467, notably section 5.10 Literal suffixes

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

end of thread, other threads:[~2022-12-09 15:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-06 15:54 [Bug c++/105509] New: [compatibility] f16 suffix not supported in C++ mode - unable to find numeric literal operator ‘operator""f16’ thiago at kde dot org
2022-05-06 17:40 ` [Bug c++/105509] " hjl.tools at gmail dot com
2022-05-06 17:44 ` redi at gcc dot gnu.org
2022-05-09  8:00 ` rguenth at gcc dot gnu.org
2022-12-09 15:20 ` pinskia 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).