diff options
author | Jason Merrill <jason@redhat.com> | 2024-11-26 07:50:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2024-11-26 23:53:37 -0500 |
commit | 2fd9aef1db1a4260ee823bc3a3d4cfc22e95c543 (patch) | |
tree | 9d4b734f52820cc1ffc28b57a84726c7b7677c4d /gcc/c | |
parent | d89d033e2731a53bf71a0db5259380504357d2f5 (diff) | |
download | gcc-2fd9aef1db1a4260ee823bc3a3d4cfc22e95c543.zip gcc-2fd9aef1db1a4260ee823bc3a3d4cfc22e95c543.tar.gz gcc-2fd9aef1db1a4260ee823bc3a3d4cfc22e95c543.tar.bz2 |
c++: modules and local static
Here we weren't emitting the guard variable for 'a' when we emitted 'afn'
in the importer, because we only treated inline variables as needing that.
Fixed by generalizing to vague_linkage_p.
But we need to specifically exempt vtables, because the rest of the module
code handles them specially and expects them to be DECL_EXTERNAL.
gcc/cp/ChangeLog:
* module.cc (trees_out::core_bools): Check vague_linkage_p.
(has_definition): Likewise.
gcc/testsuite/ChangeLog:
* g++.dg/modules/static-3_b.C: New test.
* g++.dg/modules/static-3_a.H: New test.
Diffstat (limited to 'gcc/c')
0 files changed, 0 insertions, 0 deletions