900511_03.c
来自「Mac OS X 10.4.9 for x86 Source Code gcc」· C语言 代码 · 共 21 行
C
21 行
// { dg-do assemble }// g++ 1.37.1 bug 900511_03// 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 listclass class0;struct struct1 { int class0; void member_function (class0 *); // { dg-error "" } invalid use of struct-local member};void class1::member_function (class0 *p) { // { dg-error "" } }int main () { return 0; }
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?