]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
parse-scan.y (interface_declaration): Call report_class_declaration for interfaces.
authorTom Tromey <tromey@cygnus.com>
Mon, 3 May 1999 16:59:16 +0000 (16:59 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Mon, 3 May 1999 16:59:16 +0000 (16:59 +0000)
* parse-scan.y (interface_declaration): Call
report_class_declaration for interfaces.

From-SVN: r26760

gcc/java/ChangeLog
gcc/java/parse-scan.y

index 1e43aa85d6f810e8d316c1712f80e4ef28dc8727..f7081164d90c587c3290462816cab4a226d04d02 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-03  Tom Tromey  <tromey@cygnus.com>
+
+       * parse-scan.y (interface_declaration): Call
+       report_class_declaration for interfaces.
+
 1999-04-30 20:54 -0400  Zack Weinberg  <zack@rabi.columbia.edu>
 
        * Makefile.in: Remove -v from bison command lines.
index dcebc3a091c93abed3b3ae0b6b265e47a7d07fbe..0e890aced9fcff17d41ccdb4f3f6cd4698da8c07 100644 (file)
@@ -571,11 +571,13 @@ this_or_super:                    /* Added, simplifies error diagnostics */
 /* 19.9.1 Productions from 9.1: Interfaces Declarations  */
 interface_declaration:
        INTERFACE_TK identifier interface_body
+               { report_class_declaration ($2); modifier_value = 0; }
 |      modifiers INTERFACE_TK identifier interface_body
-               { modifier_value = 0; }
+               { report_class_declaration ($3); modifier_value = 0; }
 |      INTERFACE_TK identifier extends_interfaces interface_body
+               { report_class_declaration ($2); modifier_value = 0; }
 |      modifiers INTERFACE_TK identifier extends_interfaces interface_body
-               { modifier_value = 0; }
+               { report_class_declaration ($3); modifier_value = 0; }
 ;
 
 extends_interfaces: