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
/
friend25.C
blob
fa11defc21ae941904d2774c9fd5db15f58225b1
1
// { dg-do compile }
2
3
// Origin: Jiangbin Zhao <zhaojiangbin@yahoo.com>
4
5
// PR c++/12369: ICE for specialization of member function template
6
// as friend in ordinary class.
7
8
struct A {
9
template<class T> T* make() { return new T(); }
10
};
11
12
struct B {
13
friend B* A::make< B >(); // (1)
14
};