Martin pointed out this is found with some warning modes.

I had two overloads of a function, but only one was needed.  Let's keep
the constant one.

        gcc/cp/
        * modules.cc (identifier): Merge overloads.

--
Nathan Sidwell
diff --git i/gcc/cp/module.cc w/gcc/cp/module.cc
index 1fd0bcfe3eb..e9a5eaeb4b4 100644
--- i/gcc/cp/module.cc
+++ w/gcc/cp/module.cc
@@ -276,13 +276,10 @@ static inline cpp_hashnode *cpp_node (tree id)
 {
   return CPP_HASHNODE (GCC_IDENT_TO_HT_IDENT (id));
 }
-static inline tree identifier (cpp_hashnode *node)
-{
-  return HT_IDENT_TO_GCC_IDENT (HT_NODE (node));
-}
-static inline const_tree identifier (const cpp_hashnode *node)
+
+static inline tree identifier (const cpp_hashnode *node)
 {
-  return identifier (const_cast <cpp_hashnode *> (node));
+  return HT_IDENT_TO_GCC_IDENT (HT_NODE (const_cast<cpp_hashnode *> (node)));
 }
 
 /* During duplicate detection we need to tell some comparators that

Reply via email to