Hi. I discovered strange behavior. I'm using Clang 2.0 bundled within Xcode4.
I accidentally found that the Clang compiler allows :
inline class AAA
in C++. Above code compiled successfully without any error.
I posted this question to a community ( What's the c++ inline class? - Stack Overflow ) , and many people advised me to report this to this mailing list. They said this look like a bug.
Please let me know what's this.