[Bug c++/92062] [9 Regression] ODR-use by static_assert ignored for static member of class template

mpolacek at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 22 15:47:00 GMT 2019


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

--- Comment #7 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Tue Oct 22 15:46:47 2019
New Revision: 277295

URL: https://gcc.gnu.org/viewcvs?rev=277295&root=gcc&view=rev
Log:
        PR c++/92062 - ODR-use ignored for static member of class template.

        * pt.c (has_value_dependent_address): Strip location wrappers.

        * g++.dg/cpp0x/constexpr-odr1.C: New test.
        * g++.dg/cpp0x/constexpr-odr2.C: New test.

Added:
    branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-odr1.C
    branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-odr2.C
Modified:
    branches/gcc-9-branch/gcc/cp/ChangeLog
    branches/gcc-9-branch/gcc/cp/pt.c


More information about the Gcc-bugs mailing list