var-templ60.C
148 Bytes
-
re PR c++/84536 (ICE with non-type template parameter) · 9ccdc43d
/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
Paolo Carlini committed