[LLVMbugs] [Bug 6864] poor recovery after typo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 27 11:34:30 PDT 2012


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

Kaelyn Uhrain <rikka at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |rikka at google.com
         Resolution|                            |FIXED

--- Comment #2 from Kaelyn Uhrain <rikka at google.com> 2012-06-27 13:34:30 CDT ---
Clang 3.1 recovers properly from correcting the typo in the type name for the
declaration of 'x':

$ cat tmp.cc 
typedef int mytype_t;

int foo() {
  mytype_tt x;
  return x+x;
}

$ clang++ -fsyntax-only tmp.cc 
tmp.cc:4:3: error: unknown type name 'mytype_tt'; did you mean 'mytype_t'?
  mytype_tt x;
  ^~~~~~~~~
  mytype_t
tmp.cc:1:13: note: 'mytype_t' declared here
typedef int mytype_t;
            ^
1 error generated.

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