public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: olivier@zipworld.com.au To: gcc-gnats@gcc.gnu.org Subject: java/5135: Compiler segfault on non public Interfaces Date: Sun, 16 Dec 2001 13:56:00 -0000 [thread overview] Message-ID: <20011216214516.12648.qmail@sources.redhat.com> (raw) >Number: 5135 >Category: java >Synopsis: Compiler segfault on non public Interfaces >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Sun Dec 16 13:56:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: olivier@zipworld.com.au >Release: gcc version 3.1 20011211 (experimental) >Organization: >Environment: Reading specs from /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs Configured with: ../../program/cvs/gcc/configure --prefix=/usr/local/gcc --enable-shared --enable-threads=posix --enable-languages=c++,java Thread model: posix gcc version 3.1 20011211 (experimental) >Description: gcj compilation aborts with a segfault in the following situation: Class: a/A.java a package protected interface. a/B.java a class that implement interface A. a/b/C.java a class in a different package that import both A and B and try to use a constant defined in interface A. Note that "A" and therefore "A.Hello" are protected in package "a" and should not be accessible from class "C". Sun JDK correctly reports: tournesol$ javac a/b/C.java a/b/C.java:3: a.A is not public in a; cannot be accessed from outside package import a.A; ^ a/b/C.java:10: a.A is not public in a; cannot be accessed from outside package System.out.println(A.HELLO); but gcj gets confused by the fact that class "B" (also imported) is public in package "a" and implements "A". It wrongly believes that "A" is accessible and segfault. >How-To-Repeat: gcj -C a/b/C.java >Fix: Unknown... >Release-Note: >Audit-Trail: >Unformatted: ----gnatsweb-attachment---- Content-Type: application/octet-stream; name="a.tgz" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="a.tgz" H4sIALkUHTwAA+3WTWvCMBgH8J7zKR486aVN0tYeyg5VBjsIO+wTRJe5bn2jjcIYfvel3ZwiiAxW Ze7/u6QvgYY+PMlfeU7vOA9kFIZ25CIK+f645fAo4JHg3Jf2WgjJhUNh/0tznFVjVE3klFm6TnV9 dN6p93+U8hL3Ra1Vn9/gtq7jIDhe/2hXfxkKO19KETnE+1zU1j+vf6UWr2qpScWMpYXR9ZNaaErY OyOiB1OnxZLubmeze7qhwbPOsnIQsw1jl143/A7lTS7f/+3ZsO3/KOz63xfo/3PY7/9qNc/SBS0y 1TQ0YWleZTrXhWm6/QBNf42UN+89Af4o/439Nv8FPvLfWbT1n/Z8Apza/yUPD+ovg2CM/f8cvvd/ d94mwLwqa2Nvknh3PTk8Gqaf6fDrmf1/xg7rMn2kLiAOR+3bbkqbId8ao3O3XBm3smnSZMUwcbtE OYrbKRt7sFz6JwAAAAAAAAAAAAAAAFyRDxetJjMAKAAA
next reply other threads:[~2001-12-16 21:56 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-12-16 13:56 olivier [this message] 2001-12-16 17:46 Tom Tromey 2003-04-21 21:46 Daniel Bonniot 2003-05-12 19:56 Dara Hazeghi
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20011216214516.12648.qmail@sources.redhat.com \ --to=olivier@zipworld.com.au \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).