[C++ PATCH] missed testcase

https://gcc.gnu.org/ml/gcc-patches/2018-10/msg02065.html
	* g++.dg/lookup/friend21.C: New.

From-SVN: r265697
This commit is contained in:
Nathan Sidwell 2018-10-31 17:33:59 +00:00 committed by Nathan Sidwell
parent ab5324fb68
commit d459595b53
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2018-10-31 Nathan Sidwell <nathan@acm.org>
* g++.dg/lookup/friend21.C: New.
2018-10-31 Martin Liska <mliska@suse.cz>
PR driver/83193

View File

@ -0,0 +1,14 @@
// Unhiding a friend erroneously mutated a binding
class X
{
friend void frob (int, int);
};
void frob (int);
void frob (int, int);
void foo ()
{
frob (1); // Only saw unhidden friend
}