aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt
diff options
context:
space:
mode:
authorVille Voutilainen <ville.voutilainen@gmail.com>2016-05-27 17:59:01 +0300
committerVille Voutilainen <ville@gcc.gnu.org>2016-05-27 17:59:01 +0300
commit7d67159b48803e2558f33600e2f015f4e251a3e1 (patch)
tree5a2c297fd37b69d9c6efc9a705000ebc7a8bca8b /gcc/testsuite/g++.old-deja/g++.pt
parent9b2bf368d7983b683867656160b8f79870daeb97 (diff)
downloadgcc-7d67159b48803e2558f33600e2f015f4e251a3e1.zip
gcc-7d67159b48803e2558f33600e2f015f4e251a3e1.tar.gz
gcc-7d67159b48803e2558f33600e2f015f4e251a3e1.tar.bz2
re PR c++/69855 (Missing diagnostic for overload that only differs by return type)
/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. From-SVN: r236826
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash3.C4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash3.C b/gcc/testsuite/g++.old-deja/g++.pt/crash3.C
index 160cbe5..2ba61d9 100644
--- a/gcc/testsuite/g++.old-deja/g++.pt/crash3.C
+++ b/gcc/testsuite/g++.old-deja/g++.pt/crash3.C
@@ -10,7 +10,7 @@ public:
}
CVector<long> g() const
{
- CVector<long> v();
- return v;
+ CVector<long> v2();
+ return v2;
}
};