[LLVMbugs] [Bug 7488] New: Typo correction finds variable being	initialized
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Thu Jun 24 15:19:36 PDT 2010
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=7488
           Summary: Typo correction finds variable being initialized
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: llvmbugs at cs.uiuc.edu
struct A {
  unsigned getNumHandlers();
  void foo();
};
void foo() { // missing A::
  unsigned NumHandlers = getNumHandlers();
}
daysthatwere:clang rjmccall$ clang++ /tmp/foo.cpp
/tmp/foo.cpp:7:26: error: use of undeclared identifier 'getNumHandlers'; did
you mean
      'NumHandlers'?
  unsigned NumHandlers = getNumHandlers();
                         ^~~~~~~~~~~~~~
                         NumHandlers
/tmp/foo.cpp:7:12: note: 'NumHandlers' declared here
  unsigned NumHandlers = getNumHandlers();
           ^
/tmp/foo.cpp:7:40: error: called object type 'unsigned int' is not a function
or
      function pointer
  unsigned NumHandlers = getNumHandlers();
Kindof an unfortunate choice.
-- 
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