From: Anthony Sharp Date: Fri, 27 Aug 2021 14:02:42 +0000 (-0400) Subject: call_summary: add missing template keyword X-Git-Tag: releases/gcc-10.5.0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3f20577e1380bee9066ae3a4072ea5aca3d8f43;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. (cherry picked from commit fccd5b48adf568f0aabe5d5f51206a9d42da095a) --- diff --git a/gcc/symbol-summary.h b/gcc/symbol-summary.h index fa1df5c80156..a87dc1df360e 100644 --- a/gcc/symbol-summary.h +++ b/gcc/symbol-summary.h @@ -142,7 +142,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 @@ -634,7 +634,7 @@ public: template void traverse (Arg a) const { - m_map.traverse (a); + m_map.template traverse (a); } /* Getter for summary callgraph edge pointer.