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
Update concepts branch to revision 131834
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend34.C
blob
555cf358a7dc7895a0565ca9cf2f1f2102825dce
1
// { dg-do compile }
2
3
// Origin: mleone@pixar.com
4
// Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5
6
// PR c++/9783: Forward declaration of class in template.
7
8
template <typename T>
9
struct C {
10
void foo (struct X *);
11
};
12
13
struct X {};
14
15
template <typename T>
16
void C<T>::foo(struct X *) {}