aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/binding.C
blob: cc6f25c6ed96e7f0d44f672168d37af786cb17fe (plain)
1
2
3
4
5
6
7
8
9
10
11
// Bug: g++ only looks in the current temporary binding level for a name.

struct T { ~T(); };

int main()
{
  foo:
   T t;				// ERROR - redeclared
  bar:
   T t;				// ERROR - redeclaration
}