public inbox for java-prs@sourceware.org help / color / mirror / Atom feed
* [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure @ 2005-01-28 18:08 mark at gcc dot gnu dot org 2005-01-28 18:19 ` [Bug java/19674] " dog at bluezoo dot org ` (6 more replies) 0 siblings, 7 replies; 8+ messages in thread From: mark at gcc dot gnu dot org @ 2005-01-28 18:08 UTC (permalink / raw) To: java-prs The following program doesn't compile: public interface OutSideInterface { public interface InsideInterface { void m(int p, int p2); }; } Note the empty statement (semicolon) on line 6. This is legal (jikes accepts it) but deprecated. Compiling with -C gives: OutSideInterface.java:6: error: '{' expected. }; ^ OutSideInterface.java:7: error: Class or interface declaration expected. } ^ 2 errors Reported by Jerry Haltom. With -Wextraneous-semicolon the compiler does see that this is just an declaration: OutSideInterface.java:6: warning: An empty declaration is a deprecated feature that should not be used. -- Summary: Empty declaration through semicolon (;) causes compile failure Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mark at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org @ 2005-01-28 18:19 ` dog at bluezoo dot org 2005-01-28 19:04 ` pinskia at gcc dot gnu dot org ` (5 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: dog at bluezoo dot org @ 2005-01-28 18:19 UTC (permalink / raw) To: java-prs ------- Additional Comments From dog at bluezoo dot org 2005-01-28 18:19 ------- The relevant JLS production is ClassMemberDeclaration: http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#18988 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org 2005-01-28 18:19 ` [Bug java/19674] " dog at bluezoo dot org @ 2005-01-28 19:04 ` pinskia at gcc dot gnu dot org 2005-06-18 1:50 ` mckinlay at redhat dot com ` (4 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-01-28 19:04 UTC (permalink / raw) To: java-prs ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-28 19:04 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Keywords| |diagnostic, rejects-valid Last reconfirmed|0000-00-00 00:00:00 |2005-01-28 19:04:19 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org 2005-01-28 18:19 ` [Bug java/19674] " dog at bluezoo dot org 2005-01-28 19:04 ` pinskia at gcc dot gnu dot org @ 2005-06-18 1:50 ` mckinlay at redhat dot com 2005-07-05 21:10 ` cvs-commit at gcc dot gnu dot org ` (3 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: mckinlay at redhat dot com @ 2005-06-18 1:50 UTC (permalink / raw) To: java-prs ------- Additional Comments From mckinlay at redhat dot com 2005-06-18 01:50 ------- I'm testing a patch. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org ` (2 preceding siblings ...) 2005-06-18 1:50 ` mckinlay at redhat dot com @ 2005-07-05 21:10 ` cvs-commit at gcc dot gnu dot org 2005-07-06 19:05 ` mckinlay at redhat dot com ` (2 subsequent siblings) 6 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-07-05 21:10 UTC (permalink / raw) To: java-prs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-05 21:10 ------- Subject: Bug 19674 CVSROOT: /cvs/gcc Module name: gcc Changes by: bryce@gcc.gnu.org 2005-07-05 21:09:58 Modified files: gcc/java : ChangeLog parse.y libjava : ChangeLog Added files: libjava/testsuite/libjava.compile: PR19674.java Log message: 2005-07-05 Bryce McKinlay <mckinlay@redhat.com> PR java/19674 * parse.y (interface_member_declaration): Allow empty statements in interface declarations. 2005-07-05 Bryce McKinlay <mckinlay@redhat.com> * testsuite/libjava.compile/PR19674.java: New test. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1640&r2=1.1641 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse.y.diff?cvsroot=gcc&r1=1.545&r2=1.546 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.3690&r2=1.3691 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.compile/PR19674.java.diff?cvsroot=gcc&r1=NONE&r2=1.1 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org ` (3 preceding siblings ...) 2005-07-05 21:10 ` cvs-commit at gcc dot gnu dot org @ 2005-07-06 19:05 ` mckinlay at redhat dot com 2005-07-06 19:08 ` pinskia at gcc dot gnu dot org 2005-07-12 22:35 ` cvs-commit at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: mckinlay at redhat dot com @ 2005-07-06 19:05 UTC (permalink / raw) To: java-prs ------- Additional Comments From mckinlay at redhat dot com 2005-07-06 19:05 ------- Fixed in HEAD -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org ` (4 preceding siblings ...) 2005-07-06 19:05 ` mckinlay at redhat dot com @ 2005-07-06 19:08 ` pinskia at gcc dot gnu dot org 2005-07-12 22:35 ` cvs-commit at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-07-06 19:08 UTC (permalink / raw) To: java-prs -- What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.1.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug java/19674] Empty declaration through semicolon (;) causes compile failure 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org ` (5 preceding siblings ...) 2005-07-06 19:08 ` pinskia at gcc dot gnu dot org @ 2005-07-12 22:35 ` cvs-commit at gcc dot gnu dot org 6 siblings, 0 replies; 8+ messages in thread From: cvs-commit at gcc dot gnu dot org @ 2005-07-12 22:35 UTC (permalink / raw) To: java-prs ------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-12 22:35 ------- Subject: Bug 19674 CVSROOT: /cvs/gcc Module name: gcc Changes by: tromey@gcc.gnu.org 2005-07-12 22:35:04 Modified files: gcc/java : ChangeLog jvspec.c parse-scan.y Log message: PR java/19674: * parse-scan.y (interface_member_declaration): Added empty_statement. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/ChangeLog.diff?cvsroot=gcc&r1=1.1644&r2=1.1645 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/jvspec.c.diff?cvsroot=gcc&r1=1.70&r2=1.71 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/java/parse-scan.y.diff?cvsroot=gcc&r1=1.41&r2=1.42 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19674 ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-07-12 22:35 UTC | newest] Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-01-28 18:08 [Bug java/19674] New: Empty declaration through semicolon (;) causes compile failure mark at gcc dot gnu dot org 2005-01-28 18:19 ` [Bug java/19674] " dog at bluezoo dot org 2005-01-28 19:04 ` pinskia at gcc dot gnu dot org 2005-06-18 1:50 ` mckinlay at redhat dot com 2005-07-05 21:10 ` cvs-commit at gcc dot gnu dot org 2005-07-06 19:05 ` mckinlay at redhat dot com 2005-07-06 19:08 ` pinskia at gcc dot gnu dot org 2005-07-12 22:35 ` cvs-commit at gcc dot gnu dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).