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

             Bug #: 12500
           Summary: Misleading error message
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Consider the following code:

namespace Foo {
  class Bar;
}

namespace Baz {
  class Foo::Bar;
  class Quuz {
    Foo::Bar *b;
  };
}

Right now clang emits an error "definition or redeclaration of 'Bar' not in a
namespace enclosing Foo" which for me seems a bit misleading. Maybe it should
be "Baz" does not enclose "Foo" ? Also, here fixit class => using makes sense.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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