re PR c++/90138 (ICE on invalid in contains_struct_check())
authorJakub Jelinek <jakub@redhat.com>
Fri, 19 Apr 2019 11:57:23 +0000 (13:57 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 19 Apr 2019 11:57:23 +0000 (13:57 +0200)
commit7296c0c537870eea056011c019cfe8ee92ef4a00
treea432e261665f348a9c862dea83bdbc6a2103063e
parentc280b7ee5c5dfcc1b4ae2c0389987b7b67ec8cf8
re PR c++/90138 (ICE on invalid in contains_struct_check())

PR c++/90138
* pt.c (process_template_parm): Set decl to pushdecl result.  If
!is_non_type, also set parm to that.

* g++.dg/template/pr90138.C: New test.

From-SVN: r270456
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/pr90138.C [new file with mode: 0644]