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
2014-01-30 Alangi Derick <alangiderick@gmail.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
defarg15.C
blob
fea3deee71c966442ab8200422370f6a011e7855
1
// PR c++/54198
2
3
template <typename T> void
4
refIfNotNull (T* p1)
5
{
6
p1->ref;
7
}
8
template <typename T> struct A
9
{
10
A (T* p1)
11
{
12
refIfNotNull (p1);
13
}
14
};
15
class B;
16
class C
17
{
18
void getParent (A <B> = 0);
19
};