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
2014-02-26 Fabien Chene <fabien@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend25.C
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
};