OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix PR c++/48574
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
dependent-expr7.C
1
// Origin PR c++/48574
2
// { dg-do compile }
3
4
struct A
5
{
6
virtual void foo();
7
};
8
9
template <typename T>
10
void
11
bar(T x)
12
{
13
A &b = *x;
14
b.foo ();
15
}
16
17
void
18
foo()
19
{
20
A a;
21
bar(&a);
22
}