https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93597

--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marek Polacek <mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:4a136a214ede91ef05caac017814b142883dc80d

commit r10-6482-g4a136a214ede91ef05caac017814b142883dc80d
Author: Marek Polacek <pola...@redhat.com>
Date:   Wed Feb 5 12:53:06 2020 -0500

    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.

Reply via email to