public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r10-11386] call_summary: add missing template keyword
@ 2023-05-03 15:23 Jakub Jelinek
0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2023-05-03 15:23 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:b3f20577e1380bee9066ae3a4072ea5aca3d8f43
commit r10-11386-gb3f20577e1380bee9066ae3a4072ea5aca3d8f43
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 fa1df5c8015..a87dc1df360 100644
--- a/gcc/symbol-summary.h
+++ b/gcc/symbol-summary.h
@@ -142,7 +142,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
@@ -634,7 +634,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:23 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:23 [gcc r10-11386] 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).