900511_02.c

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

C
22
字号
// g++ 1.37.1 bug 900511_02// g++ does not properly shadow names of types with names of data members// in cases where the type names in question are used in the context of// formal parameters lists for member functions.// keywords: typedef names, shadowing, scope, formal parameter list// cfront 2.0 passes this test.enum enum0 { enum0_value_0 };	struct struct0 {  int enum0;			  void member_function (enum0 e); // ERROR - invalid use of struct-local member};void class0::member_function (enum0 e) {	// ERROR - syntax error}int main () { return 0; }

⌨️ 快捷键说明

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