mangle.cc::mangle_ctor_vtbl_for_type has the following comment:

   We use the production
   <special-name> ::= CT <type> ...

but the code does:

   write_string ("_Z");
   write_string ("TC");

so the comment should obviously read

   <special-name> ::= TC <type> ...

Below is an according patch to apply to trunk.

Johann

--

c++: Fix production comment for mangle_ctor_vtbl_for_type.

mangle.cc::mangle_ctor_vtbl_for_type has

   write_string ("_Z");
   write_string ("TC");

and hence the function comment should read

   We use the production
   <special-name> ::= TC <type> ...

instead of the current

   <special-name> ::= CT <type> ...

gcc/cp/
        * mangle.cc (mangle_ctor_vtbl_for_type): Fix production in comment.

diff --git a/gcc/cp/mangle.cc b/gcc/cp/mangle.cc
index 8c67b67b197..d368359dccd 100644
--- a/gcc/cp/mangle.cc
+++ b/gcc/cp/mangle.cc
@@ -5131,7 +5131,7 @@ mangle_decomp (const tree decl, vec<tree> &decls)

    We use the production

-    <special-name> ::= CT <type> <offset number> _ <base type>  */
+    <special-name> ::= TC <type> <offset number> _ <base type>  */

 tree
 mangle_ctor_vtbl_for_type (const tree type, const tree binfo)

Reply via email to