changeset 32898:9144c66acf45 bytecode-interpreter

maint: merge default to bytecode-interpreter
author John W. Eaton <jwe@octave.org>
date Thu, 01 Feb 2024 01:25:14 -0500
parents dc3ff08bfd3f (current diff) 212bb363f1fa (diff)
children f4d7e6efb2e9
files
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy	Thu Feb 01 00:34:58 2024 -0500
+++ b/libinterp/parse-tree/oct-parse.yy	Thu Feb 01 01:25:14 2024 -0500
@@ -1845,11 +1845,11 @@
                   }
                 ;
 
-classdef        : classdef_beg attr_list identifier opt_sep stash_comment superclass_list stash_comment class_body END
+classdef        : classdef_beg stash_comment attr_list identifier opt_sep superclass_list stash_comment class_body END
                   {
                     OCTAVE_YYUSE ($4);
 
-                    octave::comment_list *lc = $5;
+                    octave::comment_list *lc = $2;
                     octave::comment_list *tc = lexer.get_comment ();
 
                     if (lexer.m_classdef_help_text.empty () && $7 && ! $7->empty ())
@@ -1860,10 +1860,10 @@
 
                     lexer.m_parsing_classdef = false;
 
-                    if (! ($$ = parser.make_classdef ($1, $2, $3, $6, $8, $9,
+                    if (! ($$ = parser.make_classdef ($1, $3, $4, $6, $8, $9,
                                                       lc, tc)))
                       {
-                        // make_classdef deleted $2, $3, $6, $8, LC, and
+                        // make_classdef deleted $3, $4, $6, $8, LC, and
                         // TC.
                         YYABORT;
                       }