[LLVMbugs] [Bug 13033] New: namespace typo correction shouldn't be suppressed for short identifiers

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jun 5 14:44:01 PDT 2012


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

             Bug #: 13033
           Summary: namespace typo correction shouldn't be suppressed for
                    short identifiers
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: quality-of-implementation
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
                    rikka at google.com
    Classification: Unclassified


This:

namespace NS {
  int a;
  int longer_b;
}

int foobar = a + longer_b;

Is diagnosed as:

<stdin>:6:9: error: use of undeclared identifier 'a'
int k = a + longer_b;
        ^
<stdin>:6:13: error: use of undeclared identifier 'longer_b'; did you mean
'NS::longer_b'?
int k = a + longer_b;
            ^~~~~~~~
            NS::longer_b
<stdin>:3:7: note: 'NS::longer_b' declared here
  int longer_b;
      ^

We should not suppress namespace correction for short identifiers.

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