This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] allow assert in inner class
- From: Jeff Sturm <jsturm at one-point dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: Eric Blake <ebb9 at byu dot net>, Per Bothner <per at bothner dot com>, <gcc-patches at gcc dot gnu dot org>, <java at gcc dot gnu dot org>
- Date: Thu, 26 Feb 2004 13:08:35 -0500 (EST)
- Subject: Re: [committed] allow assert in inner class
On 26 Feb 2004, Tom Tromey wrote:
>
> Eric> And does your patch work for asserts inside an inner class of an
> Eric> interface, since interfaces can't have a static helper?
>
> Does jikes generate a new static package-private inner class of the
> interface in this situation? Ugh.
Yes, as does gcj for class literals. See PR12857.
build_assertion really should use build_incomplete_class_ref, not
build_dot_class_method_invocation. The former already handles the case
where GET_CPC is an inner class or interface.
Jeff