diff options
author | Jason Merrill <jason@redhat.com> | 2021-04-04 23:32:32 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2021-04-05 09:27:36 -0400 |
commit | bd89b8fe9efbdf0a95d827553d1a84fd3cefaa16 (patch) | |
tree | b4a01e3690f9ea8983b712d42b242cf0eb4af1c4 /gcc/tree-ssa-dse.c | |
parent | a99a7b0afe9a1f6f866e25b8572856ae8c1d3f8d (diff) | |
download | gcc-bd89b8fe9efbdf0a95d827553d1a84fd3cefaa16.zip gcc-bd89b8fe9efbdf0a95d827553d1a84fd3cefaa16.tar.gz gcc-bd89b8fe9efbdf0a95d827553d1a84fd3cefaa16.tar.bz2 |
c++: extern template and static data member [PR99066]
'extern template' should mean that the relevant symbols are never emitted.
But in this case we were assuming that DECL_EXTERNAL was already set on the
variable, so we just needed to clear DECL_NOT_REALLY_EXTERN. Since
DECL_EXTERNAL was not set, we emitted a definition of npos.
gcc/cp/ChangeLog:
PR c++/99066
* pt.c (mark_decl_instantiated): Set DECL_EXTERNAL.
gcc/testsuite/ChangeLog:
PR c++/99066
* g++.dg/cpp0x/extern_template-6.C: New test.
Diffstat (limited to 'gcc/tree-ssa-dse.c')
0 files changed, 0 insertions, 0 deletions