This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH for expr.c
- To: mark at markmitchell dot com
- Subject: Re: PATCH for expr.c
- From: Jason Merrill <jason at cygnus dot com>
- Date: 27 May 1998 23:22:09 -0700
- Cc: law at cygnus dot com, egcs-bugs at cygnus dot com, egcs-patches at cygnus dot com
- References: <199805270607.XAA29240.cygnus.egcs.bugs@mail.earthlink.net> <u91ztflhr4.fsf@yorick.cygnus.com> <199805271853.LAA28419@mail.earthlink.net>
>>>>> Mark Mitchell <mark@markmitchell.com> writes:
> struct Outer {
> virtual ~Outer() {}
> };
> int
> main()
> {
> { struct Inner : virtual public Outer {} inner; }
> { struct Inner : virtual public Outer {} inner; }
> }
> The deal is that during the constructing of one of the `inner'
> variables, the front-end creates a vtable in expand_upcast_fixups:
> It marks this vtable as having DECL_CONTEXT of `Inner'.
I think that's the problem. I'll remove that; it shouldn't be necessary
anyway.
Jason