User account creation filtered due to spam.

Bug 19713 - ICE with (void) parameter list
Summary: ICE with (void) parameter list
Alias: None
Product: gcc
Classification: Unclassified
Component: java (show other bugs)
Version: 4.0.0
: P2 minor
Target Milestone: 4.3.0
Assignee: Not yet assigned to anyone
Keywords: error-recovery, ice-on-invalid-code
Depends on: 28067
  Show dependency treegraph
Reported: 2005-01-30 18:12 UTC by Kalle Olavi Niemitalo
Modified: 2007-01-09 20:47 UTC (History)
3 users (show)

See Also:
Known to work:
Known to fail:
Last reconfirmed: 2005-09-30 05:28:54


Note You need to log in before you can comment on or make changes to this bug.
Description Kalle Olavi Niemitalo 2005-01-30 18:12:55 UTC
$ cat
class X {
    void y(void) {
$ gcj -v -C
Using built-in specs.
Configured with: /home/kalle/src/FOREIGN-CVS/gcc/configure --prefix=/home/kalle
--exec-prefix=/home/kalle/i386-pc-linux-gnu --host=i386-pc-linux-gnu
Thread model: posix
gcc version 4.0.0 20050129 (experimental)

/home/kalle/stow/gcc/i386-pc-linux-gnu/bin/../libexec/gcc/i386-pc-linux-gnu/4.0.0/jc1 -quiet -dumpbase -auxbase-strip NONE -g1 -version
-fsyntax-only -femit-class-files -o /dev/null
GNU Java version 4.0.0 20050129 (experimental) (i386-pc-linux-gnu)
	compiled by GNU C version 4.0.0 20050103 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Class path starts here:
/home/kalle/stow/gcc/i386-pc-linux-gnu/bin/../lib/gcc/../../../share/java/libgcj-4.0.0.jar/ (system) (zip) error: ')' expected.
       void y(void) {
              ^ internal compiler error: tree check: expected tree_list, have
expr_with_file_location in method_header, at java/parse.y:4691
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:> for instructions.
Comment 1 Andrew Pinski 2005-01-30 18:14:40 UTC
Comment 2 Andrew Pinski 2005-09-30 05:28:53 UTC
I see this a lot when I accidently write java code after having writting C and C++ code.
Comment 3 Tom Tromey 2007-01-09 20:47:02 UTC
All gcj front end bugs have been fixed by the gcj-eclipse branch merge.
I'm mass-closing the affected PRs.
If you believe one of these was closed in error, please reopen it
with a note explaining why.