access11.c
来自「linux下编程用 编译软件」· C语言 代码 · 共 25 行
C
25 行
// Copyright (C) 2003 Free Software Foundation// Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>// { dg-do compile }// Access checking during explicit instantiation.class A { typedef int X; // { dg-error "private" }};class X { private: template <typename T> struct Y;};template <> struct X::Y<int> { A::X x; // { dg-error "this context" }};template <typename T> struct X::Y { typename T::X x; // { dg-error "this context" }};template struct X::Y<A>; // { dg-error "instantiated" }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?