re PR c++/77549 (ICE on invalid C++ code that references undeclared variable)
authorJakub Jelinek <jakub@redhat.com>
Wed, 14 Sep 2016 21:55:10 +0000 (23:55 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 14 Sep 2016 21:55:10 +0000 (23:55 +0200)
commit28ca05f00ab3fbf9a478457e68e02178597dd342
tree9a80734f757b355337587250a198b1c47ac07094
parentf6c7d678f880b246e733b3aedec5f1220eb8afb4
re PR c++/77549 (ICE on invalid C++ code that references undeclared variable)

PR c++/77549
* name-lookup.c (consider_binding_level): Look through TREE_LIST
and OVERLOAD.

* g++.dg/lookup/pr77549.C: New test.

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