]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix production comment for mangle_ctor_vtbl_for_type.
authorGeorg-Johann Lay <avr@gjlay.de>
Mon, 29 Jun 2026 11:49:23 +0000 (13:49 +0200)
committerJason Merrill <jason@redhat.com>
Mon, 29 Jun 2026 18:48:03 +0000 (14:48 -0400)
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.

gcc/cp/mangle.cc

index 8c67b67b1974b86cf86921fc7183a4093a3e78b0..d368359dccd6b9254e9f7507de615ddf02bb6eaf 100644 (file)
@@ -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)