[LLVMbugs] [Bug 8599] poor "invalid type name" error for c99/c++ for loop typo
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 27 11:48:45 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=8599
Kaelyn Uhrain <rikka at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |rikka at google.com
Resolution| |FIXED
--- Comment #3 from Kaelyn Uhrain <rikka at google.com> 2012-06-27 13:48:45 CDT ---
The situation has gotten worse for clang 3.1 in that it doesn't even suggest
correcting 'intt' to 'int', but with the current ToT (r159279) clang suggests
the correction and recovers properly:
$ cat tmp.cc
int f() {
for (intt i = 1; i < 10; i++)
;
}
$ ./bin/clang++ -fsyntax-only tmp.cc
tmp.cc:2:10: error: unknown type name 'intt'; did you mean 'int'?
for (intt i = 1; i < 10; i++)
^~~~
int
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