[LLVMbugs] [Bug 12951] New: clang produces namespace typo corrections when multiple candidates are available

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 25 15:19:28 PDT 2012


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

             Bug #: 12951
           Summary: clang produces namespace typo corrections when
                    multiple candidates are available
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: rikka at google.com
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


<stdin>:1:83: error: unknown type name 'Thing'; did you mean 'bazquux::Thing'?
namespace foobar { struct Thing; } namespace bazquux { struct Thing; } void f()
{ Thing t; }
                                                                               
  ^~~~~
                                                                               
  bazquux::Thing
<stdin>:1:63: note: 'bazquux::Thing' declared here
namespace foobar { struct Thing; } namespace bazquux { struct Thing; } void f()
{ Thing t; }
                                                              ^

We shouldn't provide a suggestion here, since we don't know which type was
intended.

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