This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]