https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91740
--- Comment #6 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Tue Oct 8 13:38:35 2019 New Revision: 276699 URL: https://gcc.gnu.org/viewcvs?rev=276699&root=gcc&view=rev Log: PR c++/91740 - ICE with constexpr call and ?: in ARRAY_REF. * pt.c (build_non_dependent_expr): Call build_non_dependent_expr for the first operand. Added: branches/gcc-9-branch/gcc/testsuite/g++.dg/cpp1y/var-templ63.C Modified: branches/gcc-9-branch/gcc/cp/ChangeLog branches/gcc-9-branch/gcc/cp/pt.c