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
strub: enable conditional support
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
torture
/
pr60474.C
blob
4b9fbe6566c36bb94ced283a90444b9faba74ab8
1
// { dg-do compile }
2
3
struct Layer;
4
template <typename> struct A
5
{
6
Layer *m_fn1 ();
7
Layer &operator[](int p1) { return m_fn1 ()[p1]; }
8
};
9
struct Layer
10
{
11
};
12
void fn1 (A<int> &p1, int Layer::*p2, int p3)
13
{
14
for (int a = 0;; ++a, ++p3)
15
p1[p3].*p2 = p1[a].*p2;
16
}