]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add a new function production.
authorKeith Seitz <keiths@redhat.com>
Tue, 21 Feb 2017 21:32:57 +0000 (13:32 -0800)
committerKeith Seitz <keiths@redhat.com>
Tue, 21 Feb 2017 21:32:57 +0000 (13:32 -0800)
Can this be tested in any way?

gdb/cp-name-parser.y

index fd1e9492778f69decbfa18bd7c331affbc3f12e9..14a78f1877dcfc3a3d89981df27b9cddff3137b0 100644 (file)
@@ -408,6 +408,9 @@ function
                |       colon_ext_only function_arglist start_opt
                        { $$ = fill_comp (DEMANGLE_COMPONENT_TYPED_NAME, $1, $2.comp);
                          if ($3) $$ = fill_comp (DEMANGLE_COMPONENT_LOCAL_NAME, $$, $3); }
+               |       colon_ext_only start_opt
+                       { $$ = $1;
+                         if ($2) $$ = fill_comp (DEMANGLE_COMPONENT_LOCAL_NAME, $$, $2); }
 
                |       conversion_op_name start_opt
                        { $$ = $1.comp;