Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/template/friend19.C @ 158:494b0b89df80 default tip
...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 25 May 2020 18:13:55 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
// { dg-do compile } // Origin: Benjamin Li <benxbli@yahoo.com> // PR c++/11030: Template substitution of friend class that is // a specialization. template <int S> struct A { void func(void); }; template <class T> class C { static void private_func(void) {} public: friend class A<512>; }; template <int S> void A<S>::func(void) { C<void>::private_func(); } template class A<512>;