aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorPaolo Carlini <paolo@gcc.gnu.org>2014-08-09 08:58:33 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2014-08-09 08:58:33 +0000
commit6a6bdc3d09dd375b1c40d8791018c45598b82d64 (patch)
tree6ee601ded83d4fe7b691e53061a78a56524ccec4 /gcc/cp/cp-tree.h
parent013078982d33a06a6b323556d8615f2b48dc38ab (diff)
downloadgcc-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/cp/cp-tree.h')
-rw-r--r--gcc/cp/cp-tree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index ec79c23..64049c4 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -6214,7 +6214,7 @@ extern int abstract_virtuals_error_sfinae (tree, tree, tsubst_flags_t);
extern int abstract_virtuals_error_sfinae (abstract_class_use, tree, tsubst_flags_t);
extern tree store_init_value (tree, tree, vec<tree, va_gc>**, int);
-extern void check_narrowing (tree, tree);
+extern bool check_narrowing (tree, tree, tsubst_flags_t);
extern tree digest_init (tree, tree, tsubst_flags_t);
extern tree digest_init_flags (tree, tree, int);
extern tree digest_nsdmi_init (tree, tree);