]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
call_summary: add missing template keyword
authorAnthony Sharp <anthonysharp15@gmail.com>
Fri, 27 Aug 2021 14:02:42 +0000 (10:02 -0400)
committerJason Merrill <jason@redhat.com>
Fri, 27 Aug 2021 14:08:28 +0000 (10:08 -0400)
Without the 'template', this function template compares 'traverse' to 'f',
and then compares the result to 'a'.  Evidently it hasn't been instantiated
yet.

gcc/ChangeLog:

* symbol-summary.h: Added missing template keyword.

gcc/symbol-summary.h

index 6c0fbdd1c4a77efc9c34095b4c09517d9aa25d5c..aa8a7725bc4722192f8d7c4ea73778e1ea6860f4 100644 (file)
@@ -191,7 +191,7 @@ public:
   template<typename Arg, bool (*f)(const T &, Arg)>
   void traverse (Arg a) const
   {
-    m_map.traverse <f> (a);
+    m_map.template traverse <f> (a);
   }
 
   /* Getter for summary callgraph node pointer.  If a summary for a node
@@ -690,7 +690,7 @@ public:
   template<typename Arg, bool (*f)(const T &, Arg)>
   void traverse (Arg a) const
   {
-    m_map.traverse <f> (a);
+    m_map.template traverse <f> (a);
   }
 
   /* Getter for summary callgraph edge pointer.