[Bug c++/69855] Missing diagnostic for overload that only differs by return type

ville at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri May 27 16:34:00 GMT 2016


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

--- Comment #5 from ville at gcc dot gnu.org ---
Author: ville
Date: Fri May 27 14:59:01 2016
New Revision: 236826

URL: https://gcc.gnu.org/viewcvs?rev=236826&root=gcc&view=rev
Log:
/cp
        PR c++/69855
        * name-lookup.c (pushdecl_maybe_friend_1): Push local function
        decls into the global scope after stripping template bits
        and setting DECL_ANTICIPATED.

/testsuite
        PR c++/69855
        * g++.dg/overload/69855.C: New.
        * g++.old-deja/g++.law/missed-error2.C: Adjust.
        * g++.old-deja/g++.pt/crash3.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/overload/69855.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/name-lookup.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.old-deja/g++.law/missed-error2.C
    trunk/gcc/testsuite/g++.old-deja/g++.pt/crash3.C


More information about the Gcc-bugs mailing list