PR c++/85210
commita5a483705ee06c84bcb8fe106d4947757a061758
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Apr 2018 17:27:01 +0000 (6 17:27 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Apr 2018 17:27:01 +0000 (6 17:27 +0000)
treeae8fda3ba70b77bd8111b559c84c2706192a4727
parent71f5258ba6f911727203cd56a22f781075202b66
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@259181 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/decomp42.C [new file with mode: 0644]