https://gcc.gnu.org/g:1e7d997883b024c55d7c9844e5b643f65406a1ea

commit r17-1981-g1e7d997883b024c55d7c9844e5b643f65406a1ea
Author: Georg-Johann Lay <[email protected]>
Date:   Mon Jun 29 13:49:23 2026 +0200

    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:
---
 gcc/cp/mangle.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/cp/mangle.cc b/gcc/cp/mangle.cc
index 8c67b67b1974..d368359dccd6 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