re PR c++/85210 (ICE with broken structured binding in template)
authorJakub Jelinek <jakub@redhat.com>
Fri, 6 Apr 2018 17:27:01 +0000 (19:27 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 6 Apr 2018 17:27:01 +0000 (19:27 +0200)
commite83bc9d77564eeadcc415dbbc1352b3aaabb4fa7
treeae8fda3ba70b77bd8111b559c84c2706192a4727
parentcb731872870ff15c4d4a4dc081191ed607faaa2b
re PR c++/85210 (ICE with broken structured binding in template)

PR c++/85210
* pt.c (tsubst_decomp_names): Return error_mark_node and assert
errorcount is set if tsubst doesn't return a VAR_DECL.

* g++.dg/cpp1z/decomp42.C: New test.

From-SVN: r259181
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp42.C [new file with mode: 0644]