https://llvm.org/bugs/show_bug.cgi?id=25303
Bug ID: 25303 Summary: Unclosed namespace causes cryptic errors Product: clang Version: unspecified Hardware: PC OS: Windows NT Status: NEW Severity: normal Priority: P Component: C++ Assignee: unassignedclangb...@nondot.org Reporter: amcca...@google.com CC: dgre...@apple.com, llvm-bugs@lists.llvm.org Classification: Unclassified consider: namespace Foo { namespace Bar { void thud(); } void qux() { ::Bar::thud(); } clang generates the following diagnostics: error: no member named 'Bar' in the global namespace; did you mean simply 'Bar'? ::Bar::thud(); ^~~~~ Bar note: 'Bar' declared here namespace Bar { void thud(); } ^ error: expected '}' } ^ note: to match this '{' namespace Foo { ^ 2 errors generated. It would have been nicer to recover by inserting a '}' before 'namespace Bar'. -- You are receiving this mail because: You are on the CC list for the bug.
_______________________________________________ llvm-bugs mailing list llvm-bugs@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs