diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-11-13 12:03:31 +0000 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-11-14 09:54:16 +0000 |
commit | 69d69865a792a93cce2905617c53913769d0f260 (patch) | |
tree | 9a43ab49c157cf25316dbddeff5cf26de0e370f6 /gcc/config/s390 | |
parent | 7383cb56e1170789929201b0dadc156888928fdd (diff) | |
download | gcc-69d69865a792a93cce2905617c53913769d0f260.zip gcc-69d69865a792a93cce2905617c53913769d0f260.tar.gz gcc-69d69865a792a93cce2905617c53913769d0f260.tar.bz2 |
c++: Link extended FP conversion pedwarns to -Wnarrowing [PR111842]
Several users have been confused by the status of these warnings,
which can be misunderstood as "this might not be what you want",
rather than diagnostics required by the C++ standard. Add the text "ISO
C++ does not allow" to make this clear.
Also link them to -Wnarrowing so that they can be disabled or promoted
to errors independently of other pedwarns.
PR c++/111842
PR c++/112498
gcc/cp/ChangeLog:
* call.cc (convert_like_internal): Use OPT_Wnarrowing for
pedwarns about illformed conversions involving extended
floating-point types. Clarify that ISO C++ requires these
diagnostics.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/ext-floating16.C: New test.
* g++.dg/cpp23/ext-floating17.C: New test.
Diffstat (limited to 'gcc/config/s390')
0 files changed, 0 insertions, 0 deletions