public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r11-10741] call_summary: add missing template keyword
@ 2023-05-03 15:21 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-05-03 15:21 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:3a234237e3d06b9e64e40a80107fcd1d02fbb90d
commit r11-10741-g3a234237e3d06b9e64e40a80107fcd1d02fbb90d
Author: Anthony Sharp <anthonysharp15@gmail.com>
Date: Fri Aug 27 10:02:42 2021 -0400
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:
---
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 6c0fbdd1c4a..aa8a7725bc4 100644
--- a/gcc/symbol-summary.h
+++ b/gcc/symbol-summary.h
@@ -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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-03 15:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-03 15:21 [gcc r11-10741] call_summary: add missing template keyword Jakub Jelinek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).