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.
This commit is contained in:
Anthony Sharp 2021-08-27 10:02:42 -04:00 committed by Jason Merrill
parent 41439e1f6d
commit fccd5b48ad
1 changed files with 2 additions and 2 deletions

View File

@ -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.