https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99066

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:950a97a5039c7b96602edfdf8984b5800f5837f3

commit r9-10179-g950a97a5039c7b96602edfdf8984b5800f5837f3
Author: Jason Merrill <ja...@redhat.com>
Date:   Sun Apr 4 23:32:32 2021 -0400

    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.
  • [Bug c++/99066] [9 Regression] ... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to