]> 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)
committerJakub Jelinek <jakub@redhat.com>
Wed, 3 May 2023 13:16:40 +0000 (15:16 +0200)
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.

(cherry picked from commit fccd5b48adf568f0aabe5d5f51206a9d42da095a)

gcc/symbol-summary.h

index fa1df5c8015698787c9593d263d1cae1bd53e2ba..a87dc1df360e2d7d30564c278f6eb7e4f8198429 100644 (file)
@@ -142,7 +142,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
@@ -634,7 +634,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.