re PR c++/3761 (ICE in check_template_shadow, at cp/pt.c:2013, with friend and strang...
authorScott Brumbaugh <scottb.lists@verizon.net>
Sat, 3 Jul 2004 02:19:27 +0000 (02:19 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sat, 3 Jul 2004 02:19:27 +0000 (02:19 +0000)
commitece95d900ed3c5224e591f3eb98234945aa3b942
tree99ab5461a3e7691bb95fa81acf5604562d732ade
parent50c6431753ab7961b4330c5f3c7e611ad81e9178
re PR c++/3761 (ICE in check_template_shadow, at cp/pt.c:2013, with friend and strange class hierarchy)

PR c++/3761
* name-lookup.c (push_class_level_binding): Don't pass a
TREE_LIST of ambiguous names to check_template_shadow as it
only handles declarations. Instead, pull the declaration
out and pass that.

PR c++/3761
* g++.dg/lookup/crash4.C: New test.

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