language: C++11 (gcc-4.7.2)
date: 210 days 12 hours ago
link:
visibility: private
1
2
3
4
5
6
7
8
9
10
11
struct A {
   typedef int foo;
   void function(foo a);
};
 
struct B {
   void function(foo a); //error: 'foo' has not been declared
   typedef int foo;
};
 
int main() {}
prog.cpp:7:18: error: 'foo' has not been declared