900214_01.c

来自「俄罗斯高人Mamaich的Pocket gcc编译器(运行在PocketPC上)」· C语言 代码 · 共 23 行

C
23
字号
// g++ 1.36.1 bug 900214_01// g++ allows function members of incomplete types to be declared to be// friends of other types.// Cfront 2.0 passes this test.// keywords: friends, incomplete types, function membersstruct A;                       // ERROR - forward declarationstruct B {  friend void A::foo();		// ERROR - type A is incomplete};void A::foo();			/* ERROR - also illegal */struct A {  void foo() {}};int main () { return 0; }

⌨️ 快捷键说明

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