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
PR testsuite/86649
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
eh
/
template2.C
blob
ed389328677cd3442823e95f2849582c1001be10
1
// { dg-do compile }
2
// { dg-options -O2 }
3
4
template<class T> struct O {
5
O(T *p) : q(p) { }
6
T *q;
7
};
8
struct W {
9
virtual ~W();
10
};
11
struct S : public W {
12
S (int *);
13
};
14
W *bar(int);
15
S::S (int *x)
16
{
17
for (int *p = x; *p; p++)
18
O<W> i (bar (*p));
19
}