http://llvm.org/bugs/show_bug.cgi?id=17588
[email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #1 from [email protected] --- The forward declaration is invalid, as you cannot declare namespace elements from outside the namespace. See C++ Standard §7.3.1.2p2 (emphasis mine): | Members of a named namespace can also be defined outside that namespace by | explicit qualification (3.4.3.2) of the name being defined, *provided that the | entity being defined was already declared in the namespace and the definition | appears after the point of declaration in a namespace that encloses the | declaration’s namespace*. You have to say: namespace MyNamespace { class MyClass; } The fact that the code used to compile with clang means that this was a bug in clang that was fixed in the meantime. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ LLVMbugs mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs
