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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:554eb7d2e1ef5660d6a8e1c12ee1d751a70bbf31

commit r10-8363-g554eb7d2e1ef5660d6a8e1c12ee1d751a70bbf31
Author: Jason Merrill <ja...@redhat.com>
Date:   Tue Jun 23 21:25:21 2020 -0400

    c++: Fix ICE with using and virtual function. [PR95719]

    conversion_path points to the base where we found the using-declaration,
not
    where the function is actually a member; look up the actual base.  And then
    maybe look back to the derived class if the base is primary.

    gcc/cp/ChangeLog:

            PR c++/95719
            * call.c (build_over_call): Look up the overrider in base_binfo.
            * class.c (lookup_vfn_in_binfo): Look through BINFO_PRIMARY_P.

    gcc/testsuite/ChangeLog:

            PR c++/95719
            * g++.dg/tree-ssa/final4.C: New test.

    (cherry picked from commit 7d6baf68fe22b6ef5b1d6fabbef97c0e1b4d7abf)

Reply via email to