aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-01-24 18:20:56 -0500
committerJason Merrill <jason@redhat.com>2020-01-24 22:18:46 -0500
commit8b91e848130e45b427599ad30e99f96e447ea9aa (patch)
tree851e36138628752ac727b597064877aeb0d5eabb /gcc/tree.c
parentc671727004b87f0f256191c3a99c50dc4888e79b (diff)
downloadgcc-8b91e848130e45b427599ad30e99f96e447ea9aa.zip
gcc-8b91e848130e45b427599ad30e99f96e447ea9aa.tar.gz
gcc-8b91e848130e45b427599ad30e99f96e447ea9aa.tar.bz2
c++: Fix ICE with lambda in member operator (PR93279)
Here the problem was that we were remembering the lookup in template scope, and then trying to reuse that lookup in the instantiation without substituting into it at all. The simplest solution is to not try to remember a lookup that finds a class-scope declaration, as in that case doing the normal lookup again at instantiation time will always find the right declarations. PR c++/93279 - ICE with lambda in member operator. * name-lookup.c (maybe_save_operator_binding): Don't remember class-scope bindings.
Diffstat (limited to 'gcc/tree.c')
0 files changed, 0 insertions, 0 deletions