re PR c++/80913 (Infinite loop in cc1plus with stat hack patch)
authorNathan Sidwell <nathan@acm.org>
Tue, 30 May 2017 14:43:45 +0000 (14:43 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 30 May 2017 14:43:45 +0000 (14:43 +0000)
commite2f353338584c197e7d62370821fe48f76a52ce8
tree23ae8979361b358e48c6a0849e632d9293aa33ac
parent064263c11dcac67efa859c8b1896f0a18f5c38dc
re PR c++/80913 (Infinite loop in cc1plus with stat hack patch)

PR c++/80913
* name-lookup.c (add_decl_to_level): Assert not making a circular
chain.
(update_binding): Don't prematurely slide artificial decl.

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

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