This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/66068] [6 Regression] error: type variant has different TYPE_VFIELD
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Jun 2015 00:03:39 +0000
- Subject: [Bug debug/66068] [6 Regression] error: type variant has different TYPE_VFIELD
- Auto-submitted: auto-generated
- References: <bug-66068-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66068
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
The issue is that C FE overloads TYPE_VFIELD by C_TYPE_INCOMPLETE_VARS and
dangle the pointers.
I already work around that in verify_type but the workaround assumes that only
main variants get C_TYPE_INCOMPLETE_VARS which is obviously wrong. Will extend
the workaround.