base1.c

来自「linux下编程用 编译软件」· C语言 代码 · 共 23 行

C
23
字号
// { dg-do compile }// { dg-options "-pedantic-errors -w" }// Copyright (C) 2000 Free Software Foundation, Inc.// Contributed by Nathan Sidwell 29 Nov 2001 <nathan@nathan@codesourcery.com>// PR 164// Although a direct base can be inaccessible due to ambiguity, that// should not blow up synthesized methods.struct A {int m;};struct B : A {int m;};struct C : virtual A, B {int m;};struct D : B, C {int m;};void foo2 (){  D d;  D e (d);  e = d;}

⌨️ 快捷键说明

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