Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/template/friend25.C @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 }; |