PR c++/78774 - [6/7 Regression] ICE in constexpr string literals and templates
authorMartin Sebor <msebor@redhat.com>
Thu, 15 Dec 2016 03:08:14 +0000 (03:08 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 15 Dec 2016 03:08:14 +0000 (20:08 -0700)
commit1750f2a55a7f17c557fa591691a15c363181fa80
treebfce59565b53d7ff9698a88792f51b7119a2bb80
parentedda2869d074f103dcc035e82282e9ea07421222
PR c++/78774 - [6/7 Regression] ICE in constexpr string literals and templates

gcc/cp/ChangeLog:

PR c++/78774
* pt.c (convert_template_argument): Avoid assuming operand type
is non-null since that of SCOPE_REF is not.

gcc/testsuite/ChangeLog:

PR c++/78774
* g++.dg/cpp1y/pr78774.C: New test.

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