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:
parent
41439e1f6d
commit
fccd5b48ad
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue