From: dmalcolm Date: Thu, 21 Jul 2016 17:21:12 +0000 (+0000) Subject: Fix build of spellcheck-tree.c with older gccs X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8904fe1a7359c93b399d8b35580e60a16c532ca2;p=thirdparty%2Fgcc.git Fix build of spellcheck-tree.c with older gccs gcc/ChangeLog: * spellcheck-tree.c (best_macro_match::best_macro_match): Explictly specify the template arguments when invoking the base class constructor, to help older C++ compilers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@238598 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 221a147bd9ef..f559e29dc234 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2016-07-21 David Malcolm + + * spellcheck-tree.c (best_macro_match::best_macro_match): + Explictly specify the template arguments when invoking the base + class constructor, to help older C++ compilers. + 2016-07-21 Jakub Jelinek PR sanitizer/71953 diff --git a/gcc/spellcheck-tree.c b/gcc/spellcheck-tree.c index ef1e689d9775..99a8dbabcca1 100644 --- a/gcc/spellcheck-tree.c +++ b/gcc/spellcheck-tree.c @@ -91,7 +91,7 @@ find_closest_macro_cpp_cb (cpp_reader *, cpp_hashnode *hashnode, best_macro_match::best_macro_match (tree goal, edit_distance_t best_distance_so_far, cpp_reader *reader) - : best_match (goal, best_distance_so_far) +: best_match (goal, best_distance_so_far) { cpp_forall_identifiers (reader, find_closest_macro_cpp_cb, this); }