diff options
author | Nathaniel Shead <nathanieloshead@gmail.com> | 2023-11-14 11:26:03 -0500 |
---|---|---|
committer | Nathan Sidwell <nathan@acm.org> | 2023-11-14 14:43:20 -0500 |
commit | 14979dd31c887ba5ba573f2cdb0647b37e09641a (patch) | |
tree | a81f5bf5a6adb8b356d5d81efa8cfad3ffc39701 /libcpp | |
parent | 5b9ecce87e8f315e2681743d75401991cdfefa71 (diff) | |
download | gcc-14979dd31c887ba5ba573f2cdb0647b37e09641a.zip gcc-14979dd31c887ba5ba573f2cdb0647b37e09641a.tar.gz gcc-14979dd31c887ba5ba573f2cdb0647b37e09641a.tar.bz2 |
c++: Stream virtual dtor vtable indices
Virtual cloned functions have distinct vtable indices, stream them
explicitly.
As such, this patch ensures that DECL_VINDEX is properly passed on for
cloned functions as well to prevent this from causing issues.
PR c++/103499
gcc/cp/ChangeLog:
* module.cc (trees_out::decl_node): Write DECL_VINDEX for
virtual clones.
(trees_in::tree_node): Read DECL_VINDEX for virtual clones.
gcc/testsuite/ChangeLog:
* g++.dg/modules/pr103499_a.C: New test.
* g++.dg/modules/pr103499_b.C: New test.
Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
Signed-off-by: Nathan Sidwell <nathan@acm.org>
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions