xref: /openbsd-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.jason/binding.C (revision c87b03e512fc05ed6e0222f6fb0ae86264b1d05b)
1 // Bug: g++ only looks in the current temporary binding level for a name.
2 
3 struct T { ~T(); };
4 
main()5 int main()
6 {
7   foo:
8    T t;				// ERROR - redeclared
9   bar:
10    T t;				// ERROR - redeclaration
11 }
12