re PR c++/81229 (ICE in c_tree_chain_next on aarch64)
authorNathan Sidwell <nathan@acm.org>
Fri, 30 Jun 2017 11:40:08 +0000 (11:40 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Fri, 30 Jun 2017 11:40:08 +0000 (11:40 +0000)
commit274c15162b9b023b8569fa39481ad1a0b7ed0070
tree7e7b4ece8e31838a9e2eee4464327af7658812f2
parent273a94e0fa98687df97826fdaff46c29bdfa4d06
re PR c++/81229 (ICE in c_tree_chain_next on aarch64)

PR c++/81229
* name-lookup.c (do_pushdecl): Reset IDENTIFIER_TYPE when finding
a matching TYPE_DECL.

* g++.dg/lookup/pr81229.C: New.

From-SVN: r249835
gcc/cp/ChangeLog
gcc/cp/name-lookup.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/pr81229.C [new file with mode: 0644]