The following C++ code fails to compile in Visual Studio 2010:namespace N{typedef void (*F)(int, struct S*);struct S{ struct I { };};}int main(void){ return 0;}The error message is on line 8:error C2888: 'S::I' : symbol cannot be defined within namespace 'N'If the declaration for F is removed (which contains a forward declaration of S), or if it is changed slightly (such as by removing the first 'int' parameter), the error message goes away and the code compiles successfully.
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...