URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [lookup/] [friend1.C] - Rev 378
Go to most recent revision | Compare with Previous | Blame | View Log
// { dg-do compile }
// Origin: <matz@suse.de>
// PR c++/9970: In-class friend function definition after
// declaration lexical scope problem.
void f();
struct X
{
enum { k = 1 };
friend void f() {
char a[k];
}
};
Go to most recent revision | Compare with Previous | Blame | View Log