pmf1.c

来自「gcc3.2.1源代码」· C语言 代码 · 共 22 行

C
22
字号
// { dg-do compile }// Copyright (C) 2002 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 04 Mar 2002 <nathan@codesourcery.com>//		  Jason Merrill <jason@redhat.com>struct A { int i; };struct B: private A {};struct C {  C (int A::*);};int A::*aip = &A::i;void f (int B::*) {}  // should choose this, even though it's ill-formedvoid f (C) {}         // even though this would be well-formedint main (){  f (aip);  // { dg-error "`A' is an inaccessible base of `B'" "" }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?