aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Malcolm <dmalcolm@redhat.com>2016-07-21 17:21:12 +0000
committerDavid Malcolm <dmalcolm@gcc.gnu.org>2016-07-21 17:21:12 +0000
commit1c4b8a04494fbd90ac41fd07158ab88410865b88 (patch)
tree8b96d7f089d6b92b8f41c5f1ed721ef162ac2872 /gcc
parent185faecb556ca1343c84f72649e361ed39d943d2 (diff)
downloadgcc-1c4b8a04494fbd90ac41fd07158ab88410865b88.zip
gcc-1c4b8a04494fbd90ac41fd07158ab88410865b88.tar.gz
gcc-1c4b8a04494fbd90ac41fd07158ab88410865b88.tar.bz2
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. From-SVN: r238598
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/spellcheck-tree.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 221a147..f559e29 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/spellcheck-tree.c b/gcc/spellcheck-tree.c
index ef1e689..99a8dba 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_t, candidate_t> (goal, best_distance_so_far)
{
cpp_forall_identifiers (reader, find_closest_macro_cpp_cb, this);
}