diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/scoping2.C | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C new file mode 100644 index 000000000..637e74b24 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping2.C @@ -0,0 +1,15 @@ +// { dg-do assemble } +// Bug: A function is not hidden properly by a use of its name in an +// inner scope. + +struct A +{ + struct B + { + int f; + B() : f(0) {} + void g() { f = 0; } + }; + void f(); + void f(int); +}; |