diff options
author | Paolo Carlini <paolo@gcc.gnu.org> | 2014-08-09 08:58:33 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2014-08-09 08:58:33 +0000 |
commit | 6a6bdc3d09dd375b1c40d8791018c45598b82d64 (patch) | |
tree | 6ee601ded83d4fe7b691e53061a78a56524ccec4 /gcc/doc | |
parent | 013078982d33a06a6b323556d8615f2b48dc38ab (diff) | |
download | gcc-6a6bdc3d09dd375b1c40d8791018c45598b82d64.zip gcc-6a6bdc3d09dd375b1c40d8791018c45598b82d64.tar.gz gcc-6a6bdc3d09dd375b1c40d8791018c45598b82d64.tar.bz2 |
invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
* doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
gcc/cp
2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
* typeck2.c (check_narrowing): Add tsubst_flags_t parameter, change
return type to bool; in C++11 for constants give errors, not pedwarns.
* cp-tree.h (check_narrowing): Adjust declaration.
* call.c (convert_like_real): Update calls.
* semantics.c (finish_compound_literal): Likewise.
gcc/testsuite
2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
* g++.dg/cpp0x/Wnarrowing1.C: Adjust for errors.
* g++.dg/cpp0x/enum29.C: Adjust.
/libstdc++-v3
2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
* include/ext/pod_char_traits.h (char_traits<__gnu_cxx::
character<_Value, _Int, _St> >::eof): Fix vs narrowing conversion.
From-SVN: r213776
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/invoke.texi | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 4f327df..3582035 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -2622,10 +2622,10 @@ int i = @{ 2.2 @}; // error: narrowing from double to int This flag is included in @option{-Wall} and @option{-Wc++11-compat}. -With @option{-std=c++11}, @option{-Wno-narrowing} suppresses the diagnostic -required by the standard. Note that this does not affect the meaning -of well-formed code; narrowing conversions are still considered -ill-formed in SFINAE context. +With @option{-std=c++11}, @option{-Wno-narrowing} suppresses for +non-constants the diagnostic required by the standard. Note that this +does not affect the meaning of well-formed code; narrowing conversions +are still considered ill-formed in SFINAE context. @item -Wnoexcept @r{(C++ and Objective-C++ only)} @opindex Wnoexcept |