re PR c++/67142 ([C++1z] ICE: tree check: expected template_decl, have field_decl...
authorJason Merrill <jason@redhat.com>
Sat, 8 Aug 2015 22:01:21 +0000 (18:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 8 Aug 2015 22:01:21 +0000 (18:01 -0400)
commitd6729a4291a69749ea7faf55bba2c4520ca6a6a9
treeeb12bedf19b9d82697a38e97c545461fa97aacc0
parenta2dfb563745d1b0be669f49e37f6b7d56ee65991
re PR c++/67142 ([C++1z] ICE: tree check: expected template_decl, have field_decl in equal, at cp/pt.c:1665)

PR c++/67142
* pt.c (equal): Make sure tmpl is actually a template.

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