re PR c++/84536 (ICE with non-type template parameter)
commit9ccdc43d5ee4a3ecdccc10c9d28fc90db6d13eb3
authorPaolo Carlini <paolo.carlini@oracle.com>
Wed, 20 Feb 2019 10:47:02 +0000 (20 10:47 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 20 Feb 2019 10:47:02 +0000 (20 10:47 +0000)
tree2b881c9ce3df628ba11469416bb0ea510161e96c
parent54603edcb1a82307fa28a54ade7d978db7599180
re PR c++/84536 (ICE with non-type template parameter)

/cp
2019-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84536
* pt.c (tsubst_init): Diagnose an initializer expanding to an
empty list of expressions; tweak wrt dependent types.
(regenerate_decl_from_template): For VAR_DECLs call tsubst_init
instead of tsubst_expr.

/testsuite
2019-02-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/84536
* g++.dg/cpp1y/var-templ60.C: New.

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