comparison gcc/testsuite/g++.old-deja/g++.jason/scoping8.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
1 // { dg-do assemble } 1 // { dg-do assemble }
2 // Bug: g++ allows two different meanings of a name in the same scope. 2 // Bug: g++ allows two different meanings of a name in the same scope.
3 3
4 typedef int foo; // { dg-error "" } 4 typedef int foo; // { dg-message "declared here" }
5 struct A { 5 struct A {
6 A (foo); 6 A (foo);
7 int foo (); // { dg-error "" } foo already used in scope 7 int foo (); // { dg-error "changes meaning" }
8 }; 8 };