☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
other
/
friend5.C
☽
☼
gcc/testsuite/g++.dg/other/friend5.C
code
plain
raw
1
/* PR c++/32111 */
2
/* This used to ICE. */
3
4
/* { dg-do compile } */
5
6
struct A
7
{
8
friend A::~A() {} /* { dg-error "3:member functions are implicitly friends of their class" } */
9
};