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