Fix build of spellcheck-tree.c with older gccs
authorDavid Malcolm <dmalcolm@redhat.com>
Thu, 21 Jul 2016 17:21:12 +0000 (17:21 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Thu, 21 Jul 2016 17:21:12 +0000 (17:21 +0000)
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.

From-SVN: r238598

gcc/ChangeLog
gcc/spellcheck-tree.c

index 221a147bd9ef5745d600bc3530108c53ed8f9012..f559e29dc234cb42188bc56ebe864411193a2c6c 100644 (file)
@@ -1,3 +1,9 @@
+2016-07-21  David Malcolm  <dmalcolm@redhat.com>
+
+       * 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  <jakub@redhat.com>
 
        PR sanitizer/71953
index ef1e689d9775b50e6205caddffdf24a76c8e48b1..99a8dbabcca1c568be9ee9cca30d2de2ccdbd242 100644 (file)
@@ -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_t, candidate_t> (goal, best_distance_so_far)
 {
   cpp_forall_identifiers (reader, find_closest_macro_cpp_cb, this);
 }