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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend55.C
blob
4abe6ce6a2386188fa44eb68b1364720a4cf96b6
1
// PR c++/59956
2
3
template <int I> struct A;
4
template <int I> class B {
5
int i;
6
template <int A_S> friend void A<A_S>::impl();
7
};
8
9
B<0> b1;
10
template<int I>struct A { void impl(); };
11
B<1> b2;
12
13
template<int I> void A<I>::impl() { ++b1.i; ++b2.i; }
14
15
int main()
16
{
17
A<0>().impl();
18
}