[Bug c/110703] Incorrect "-Wfloat-conversion" diagnostic with _Generic

2023-11-03 Thread uecker at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110703

uecker at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||uecker at gcc dot gnu.org
  Known to fail||4.9.0
   Target Milestone|--- |14.0
 Resolution|--- |FIXED

--- Comment #4 from uecker at gcc dot gnu.org ---
fixed on trunk.

[Bug c/110703] Incorrect "-Wfloat-conversion" diagnostic with _Generic

2023-08-05 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110703

--- Comment #3 from CVS Commits  ---
The master branch has been updated by Martin Uecker :

https://gcc.gnu.org/g:54be338589ea93ad4ff53d22adde476a0582537b

commit r14-3004-g54be338589ea93ad4ff53d22adde476a0582537b
Author: Martin Uecker 
Date:   Fri Aug 4 07:48:21 2023 +0200

c: _Generic should not warn in non-active branches
[PR68193,PR97100,PR110703]

To avoid false diagnostics, use c_inhibit_evaluation_warnings when
a generic association is known to not match during parsing.  We may
still generate false positives if the default branch comes earler than
a specific association that matches.

PR c/68193
PR c/97100
PR c/110703

gcc/c/:
* c-parser.cc (c_parser_generic_selection): Inhibit evaluation
warnings branches that are known not be taken during parsing.

gcc/testsuite/ChangeLog:
* gcc.dg/pr68193.c: New test.

[Bug c/110703] Incorrect "-Wfloat-conversion" diagnostic with _Generic

2023-08-03 Thread muecker at gwdg dot de via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110703

Martin Uecker  changed:

   What|Removed |Added

 CC||muecker at gwdg dot de

--- Comment #2 from Martin Uecker  ---
PATCH

https://gcc.gnu.org/pipermail/gcc-patches/2023-August/626319.html

[Bug c/110703] Incorrect "-Wfloat-conversion" diagnostic with _Generic

2023-07-17 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110703

Andrew Pinski  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1
   Last reconfirmed||2023-07-17

--- Comment #1 from Andrew Pinski  ---
It is basically the same as PR 68193 really.