SUNDAY, APRIL 19, 2026 GCC DIGEST · OPEN-SOURCE SYSTEMS DAILY VOL. 1 · NO. 109
Late Edition · APRIL 19, 2026 · VOL. 1 · NO. 109
The GCC Digest
— A Daily Record of the GNU Compiler Collection —
gcc Impact 5 / 10

Fix handling of anonymous type vtables in ipa-devirt.

The compiler now correctly handles anonymous type vtables during interprocedural devirtualization by tracking construction vtables of derived types.

The compiler was generating wrong code due to incorrect handling of anonymous type vtables in ipa-devirt. The issue arises when an anonymous type is derived by another class and the anonymous type’s virtual table is not directly used, but its virtual functions are referenced through the derived class’s construction vtable. To fix this, the patch adds a walk of variables to note construction vtables when anonymous types are present.

Filed Under: ipadevirtualizationC++vtablesbugfix