repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
nsdmi5.C
blob
bade28f3dcc5b8a16dc6420c08564f3c083c9541
1
// { dg-do compile { target c++11 } }
2
3
struct X
4
{
5
int x = 5;
6
int f() { return x; }
7
};
8
struct Y : X
9
{
10
int y = this->x;
11
};
12
template <class T> struct Z : T
13
{
14
int y = this->f();
15
};
16
int main()
17
{
18
Y foo;
19
Z<X> bar;
20
}