Fix ICE on invalid variable template instantiation (PR c++/72759)
authorPatrick Palka <ppalka@gcc.gnu.org>
Thu, 4 Aug 2016 19:14:32 +0000 (19:14 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Thu, 4 Aug 2016 19:14:32 +0000 (19:14 +0000)
commit08156df50a56e4a4bd95159ad1bfbc50678f9e8a
tree29a17573923f7f183be6505b6fb4b9a3c390479d
parent938da3a58b989f983233eceb8be320ea1b478081
Fix ICE on invalid variable template instantiation (PR c++/72759)

gcc/cp/ChangeLog:

PR c++/72759
* pt.c (tsubst_qualified_id): Return error_mark_node if
template_args is error_mark_node.

gcc/testsuite/ChangeLog:

PR c++/72759
* g++.dg/cpp1y/pr72759.C: New test.

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