aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cp-tree.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2017-02-11 12:29:45 -0500
committerJason Merrill <jason@gcc.gnu.org>2017-02-11 12:29:45 -0500
commitbc61048a143b10d8efdc50195f2fc949d036ca92 (patch)
treedf0e62895260012d5366675ce6bccec695312750 /gcc/cp/cp-tree.h
parent31deea5e716be71a07d8f1ec4670e9a074b32127 (diff)
downloadgcc-bc61048a143b10d8efdc50195f2fc949d036ca92.zip
gcc-bc61048a143b10d8efdc50195f2fc949d036ca92.tar.gz
gcc-bc61048a143b10d8efdc50195f2fc949d036ca92.tar.bz2
PR c++/77790 - ICE with auto function in C++11 mode
* decl.c (undeduced_auto_decl): Remove C++14 limitation. (require_deduced_type): Add complain parm, return bool. * cp-tree.h: Adjust. * decl2.c (mark_used): Use require_deduced_type. From-SVN: r245358
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 a410926..0146332 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -5909,7 +5909,7 @@ extern tree reshape_init (tree, tree, tsubst_flags_t);
extern tree next_initializable_field (tree);
extern tree fndecl_declared_return_type (tree);
extern bool undeduced_auto_decl (tree);
-extern void require_deduced_type (tree);
+extern bool require_deduced_type (tree, tsubst_flags_t = tf_warning_or_error);
extern tree finish_case_label (location_t, tree, tree);
extern tree cxx_maybe_build_cleanup (tree, tsubst_flags_t);