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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
crash69.C
blob
957f1e19ba3c786437a5e80d0e1bb49930c21e25
1
// PR c++/31132
2
3
template<typename T> class A
4
{
5
static int i; // { dg-error "is private" }
6
friend int T::foo(); // { dg-error "does not match" }
7
};
8
9
struct B
10
{
11
void foo() { A<B>::i; } // { dg-error "within|candidate" }
12
};