From fccd5b48adf568f0aabe5d5f51206a9d42da095a Mon Sep 17 00:00:00 2001 From: Anthony Sharp Date: Fri, 27 Aug 2021 10:02:42 -0400 Subject: [PATCH] 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. --- 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 6c0fbdd1c4a7..aa8a7725bc47 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -191,7 +191,7 @@ public: template void traverse (Arg a) const { - m_map.traverse (a); + m_map.template traverse (a); } /* Getter for summary callgraph node pointer. If a summary for a node @@ -690,7 +690,7 @@ public: template void traverse (Arg a) const { - m_map.traverse (a); + m_map.template traverse (a); } /* Getter for summary callgraph edge pointer. -- 2.47.2