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: RFA: PATCH to ctor_for_folding for c++/61020 (ICE with typeid)


On Tue, Jun 3, 2014 at 3:39 AM, Jason Merrill <jason@redhat.com> wrote:
> The C++ front end wants to be able to build up objects of the various
> typeinfo derived classes (such as __si_class_type_info) without needing to
> see the full definition of the class.  As part of this we build a VAR_DECL
> for the vtable, but never define it because we don't actually have
> declarations of the virtual functions, we're only using it for external
> references.  ctor_for_folding was assuming that all vtables are defined,
> which broke on this case.
>
> Tested x86_64-pc-linux-gnu.  OK for trunk?

Ok.

Thanks,
Richard.


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