https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92015
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Nov 8 18:52:44 2019 New Revision: 277980 URL: https://gcc.gnu.org/viewcvs?rev=277980&root=gcc&view=rev Log: Backported from mainline 2019-10-21 Jakub Jelinek <ja...@redhat.com> PR c++/92015 * constexpr.c (cxx_eval_component_reference, cxx_eval_bit_field_ref): Use STRIP_ANY_LOCATION_WRAPPER on CONSTRUCTOR elts. * g++.dg/cpp0x/constexpr-92015.C: New test. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp0x/constexpr-92015.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/constexpr.c branches/gcc-9-branch/gcc/testsuite/ChangeLog