RFA: PATCH to ctor_for_folding for c++/61020 (ICE with typeid)

Jason Merrill jason@redhat.com
Tue Jun 3 01:39:00 GMT 2014


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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 61020.patch
Type: text/x-patch
Size: 1577 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140603/8e523334/attachment.bin>


More information about the Gcc-patches mailing list