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

--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Nathan Sidwell <nat...@gcc.gnu.org>:

https://gcc.gnu.org/g:5f3c6027257118469a722816e228394b5978ddb0

commit r11-7915-g5f3c6027257118469a722816e228394b5978ddb0
Author: Nathan Sidwell <nat...@acm.org>
Date:   Tue Mar 30 09:45:59 2021 -0700

    c++: duplicate const static members [PR 99283]

    This is the bug that keeps on giving.  Reducing it has been successful
    at hitting other defects. In this case, some more specialization hash
    table fun, plus an issue with reading in a definition of a duplicated
    declaration.  At least I discovered a null context check is no longer
    needed.

            PR c++/99283
            gcc/cp/
            * module.cc (dumper::operator): Make less brittle.
            (trees_out::core_bools): VAR_DECLs always have a context.
            (trees_out::key_mergeable): Use same_type_p for asserting.
            (trees_in::read_var_def): Propagate
            DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P.
            gcc/testsuite/
            * g++.dg/modules/pr99283-5.h: New.
            * g++.dg/modules/pr99283-5_a.H: New.
            * g++.dg/modules/pr99283-5_b.H: New.
            * g++.dg/modules/pr99283-5_c.C: New.

Reply via email to