public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108285] New: [13 Regression] error: conversion from ‘long double’ to ‘double’ may change value [-Werror=float-conversion] since r13-3291-g16ec267063c8ce60
@ 2023-01-04 16:28 marxin at gcc dot gnu.org
  2023-01-04 16:28 ` [Bug c++/108285] " marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2023-01-04 16:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108285
           Summary: [13 Regression] error: conversion from ‘long double’
                    to ‘double’ may change value
                    [-Werror=float-conversion] since
                    r13-3291-g16ec267063c8ce60
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jakub at gcc dot gnu.org
  Target Milestone: ---

I noticed libheif package fails due to:

$ cat heif.ii
void lround(double);

void foo(float coeffs) {
  lround(2 * coeffs);
}

$ g++ heif.ii -c -m32 -std=c++14 -Werror=float-conversion 
heif.ii: In function ‘void foo(float)’:
heif.ii:4:12: error: conversion from ‘long double’ to ‘double’ may change value
[-Werror=float-conversion]
    4 |   lround(2 * coeffs);
      |          ~~^~~~~~~~
cc1plus: some warnings being treated as errors

while -m64 is fine:

$ g++ heif.ii -c -std=c++14 -Werror=float-conversion

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

end of thread, other threads:[~2023-01-13 17:37 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-04 16:28 [Bug c++/108285] New: [13 Regression] error: conversion from ‘long double’ to ‘double’ may change value [-Werror=float-conversion] since r13-3291-g16ec267063c8ce60 marxin at gcc dot gnu.org
2023-01-04 16:28 ` [Bug c++/108285] " marxin at gcc dot gnu.org
2023-01-04 17:21 ` pinskia at gcc dot gnu.org
2023-01-09 17:28 ` rguenth at gcc dot gnu.org
2023-01-10 15:58 ` jakub at gcc dot gnu.org
2023-01-13 17:24 ` cvs-commit at gcc dot gnu.org
2023-01-13 17:37 ` jakub 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).