PR c++/91740 - ICE with constexpr call and ?: in ARRAY_REF.
authorMarek Polacek <polacek@redhat.com>
Sun, 15 Sep 2019 20:22:27 +0000 (20:22 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Sun, 15 Sep 2019 20:22:27 +0000 (20:22 +0000)
commit2abc02a1f5e6078f67172c64b22e91b8a5f1884e
tree2bcd0b531ffe4ae651ea96a955ec7e3e752d9407
parent41fb55fd5cb551f4b32d9ca122f45140acbb1f26
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.

* g++.dg/cpp1y/var-templ63.C: New test.

From-SVN: r275736
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1y/var-templ63.C [new file with mode: 0644]