☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
template
/
scope6.C
☽
☼
gcc/testsuite/g++.dg/template/scope6.C
code
plain
raw
1
// PR c++/89831
2
3
struct Q {
4
int operator[](int i) { return 0; }
5
int operator[](int i) const { return 0; }
6
};
7
8
struct Base {
9
Q x;
10
};
11
struct X : public Base {
12
template <typename T>
13
void f(T) const {
14
int q = Base::x[0];
15
}
16
};
17
int main() { X().f(3); }