diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/scoping9.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/scoping9.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/scoping9.C b/gcc/testsuite/g++.old-deja/g++.jason/scoping9.C new file mode 100644 index 000000000..be991185f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/scoping9.C @@ -0,0 +1,12 @@ +// { dg-do assemble } +// Bug: g++ silently mangles the second 'B' to 'A::B', so the definition is +// lost. + +struct A { + enum B { }; +}; + +struct C: public A { + enum B { }; + void foo (C::B); +}; |