900212_02.c

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

C
28
字号
// g++ 1.36.1 bug 900212_02// g++ fails to flag as errors attempts to take the difference of two values// of some compatible pointer-to-member type.// Cfront 2.0 passes this test.// keywords: pointer arithmetic, subtraction, member pointersstruct struct0 {};int struct0::*p0;int struct0::*p1;int (struct0::*fp0) ();int (struct0::*fp1) ();int result;void global_function_0 (){  result = (p0 - p1);		// ERROR -   result = (fp0 - fp1);		// ERROR - }int main () { return 0; }

⌨️ 快捷键说明

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