diff options
author | Jason Merrill <jason@redhat.com> | 2020-02-13 16:42:04 +0100 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-02-13 22:29:25 +0100 |
commit | abc79c6498a99e9c39e6056f432796c6dde3a887 (patch) | |
tree | 1093a665d33c96e5f27b37b70894361574830d42 /gcc/cp/class.c | |
parent | 613c932f5e5c0cc2e4b88e21d9870fa7b1a6ce5d (diff) | |
download | gcc-abc79c6498a99e9c39e6056f432796c6dde3a887.zip gcc-abc79c6498a99e9c39e6056f432796c6dde3a887.tar.gz gcc-abc79c6498a99e9c39e6056f432796c6dde3a887.tar.bz2 |
c++: Fix static local vars in extern "C".
Since my patch for PR 91476 moved visibility determination sooner, a local
static in a vague linkage function now gets TREE_PUBLIC set before
retrofit_lang_decl calls set_decl_linkage, which was making decl_linkage
think that it has external linkage. It still has no linkage according to
the standard.
gcc/cp/ChangeLog
2020-02-13 Jason Merrill <jason@redhat.com>
PR c++/93643
PR c++/91476
* tree.c (decl_linkage): Always lk_none for locals.
Diffstat (limited to 'gcc/cp/class.c')
0 files changed, 0 insertions, 0 deletions