inline1.c

来自「this is a gcc file, you can download it 」· C语言 代码 · 共 44 行

C
44
字号
// PR c++/6316// This testcase ICEd because when deferred bar()::F::F() was being// expanded, containing bar() was still deferred and had DECL_EXTERNAL set// (and DECL_NOT_REALLY_EXTERN too).// { dg-do compile }// { dg-options "-O3" }struct A { ~A() throw() {} };template<typename T, typename U> struct B { U a; B(const T *); };typedef B<char, A> C;struct D { D(); };struct E { virtual ~E(); };E *bar ();voidfoo (){  E *a = bar ();}extern char *z [];E *bar (){  struct F : public E  {    F ()    {      for (int i = 0; i < 2; i++)	C e = z[i];    }    D x, y;  };  return new F ();}intmain (){  foo ();}

⌨️ 快捷键说明

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