public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3183] call_summary: add missing template keyword
@ 2021-08-27 14:08 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2021-08-27 14:08 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fccd5b48adf568f0aabe5d5f51206a9d42da095a

commit r12-3183-gfccd5b48adf568f0aabe5d5f51206a9d42da095a
Author: Anthony Sharp <anthonysharp15@gmail.com>
Date:   Fri Aug 27 10:02:42 2021 -0400

    call_summary: add missing template keyword
    
    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.

Diff:
---
 gcc/symbol-summary.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h
index 6c0fbdd1c4a..aa8a7725bc4 100644
--- a/gcc/symbol-summary.h
+++ b/gcc/symbol-summary.h
@@ -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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-27 14:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-27 14:08 [gcc r12-3183] call_summary: add missing template keyword Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).