[LLVMbugs] [Bug 12500] New: Misleading error message

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 9 04:59:24 PDT 2012


             Bug #: 12500
           Summary: Misleading error message
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.

More information about the llvm-bugs mailing list