repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
PR libstdc++/54924 - Warn for std::string constructor with wrong size
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend15.C
blob
e05cc555707ee6eb9dec5a6bfe319f4c790566ff
1
// Origin: PR c++/35109
2
// { dg-do compile }
3
4
void foo()
5
{
6
struct A
7
{
8
friend class B;
9
};
10
B::B() {} // { dg-error "has not been declared" }
11
}