From: Anthony Sharp Date: Fri, 27 Aug 2021 14:02:42 +0000 (-0400) Subject: call_summary: add missing template keyword X-Git-Tag: basepoints/gcc-13~5130 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fccd5b48adf568f0aabe5d5f51206a9d42da095a;p=thirdparty%2Fgcc.git 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 --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.