summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/scoping8.C
blob: de023d1c3e182c35f1eeae52bf13ff950e82a409 (plain)
1
2
3
4
5
6
7
// Bug: g++ allows two different meanings of a name in the same scope.

typedef int foo;		// ERROR - 
struct A {
  A (foo);
  int foo ();			// ERROR - foo already used in scope
};