diff options
author | Marek Polacek <polacek@redhat.com> | 2020-02-05 12:53:06 -0500 |
---|---|---|
committer | Marek Polacek <polacek@redhat.com> | 2020-02-06 11:58:23 -0500 |
commit | 4a136a214ede91ef05caac017814b142883dc80d (patch) | |
tree | 2fbaaf508ba18858fb6293c4f6c29204515e24da /gcc/tree-inline.c | |
parent | f78335df69993a900512f92324cab6a20b1bde0c (diff) | |
download | gcc-4a136a214ede91ef05caac017814b142883dc80d.zip gcc-4a136a214ede91ef05caac017814b142883dc80d.tar.gz gcc-4a136a214ede91ef05caac017814b142883dc80d.tar.bz2 |
c++: Fix ICE with lambda in operator function [PR93597]
If we are going to use get_first_fn let's make sure we operate on
is_overloaded_fn, as the rest of the codebase does, and if lookup finds
any class-scope declaration, return early too.
PR c++/93597 - ICE with lambda in operator function.
* name-lookup.c (maybe_save_operator_binding): Check is_overloaded_fn.
* g++.dg/cpp0x/lambda/lambda-93597.C: New test.
Diffstat (limited to 'gcc/tree-inline.c')
0 files changed, 0 insertions, 0 deletions