http://llvm.org/bugs/show_bug.cgi?id=20145

            Bug ID: 20145
           Summary: clang-cl doesn't accept forward declarations using
                    namespace prefixes if the class has been already
                    properly declared
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

I'm pretty sure this is not C++, but MSVC accepts this program just fine.

$ cat test.cpp
namespace foo{
class bar;
}
class foo::bar;

$ clang-cl -c test.cpp
test.cpp(4,7) :  error: forward declaration of class cannot have a nested name
      specifier
class foo::bar;
      ^~~~~
1 error generated.

-- 
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

Reply via email to