aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.old-deja/g++.jason/scoping7.C
blob: 245c8fa073eac3f8b917982e8ce0dc4e87bc0191 (plain)
1
2
3
4
5
6
// { dg-do assemble  }
// Bug: g++ doesn't flag name collisions between types and non-types as
// errors.  It shouldn't for class names, but it should for typedefs.

int bar;			// { dg-message "" } 
typedef int bar;		// { dg-error "" }