http://llvm.org/bugs/show_bug.cgi?id=8599
Summary: poor "invalid type name" error for c99/c++ for loop
typo
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
On this code:
int f() {
for (intt i = 1; i < 10; i++)
;
}
We produce:
t.c:3:7: error: use of undeclared identifier 'intt'; did you mean 'int'?
for (intt i = 1; i < 10; i++)
^
t.c:3:19: error: use of undeclared identifier 'i'
for (intt i = 1; i < 10; i++)
^
t.c:3:27: error: use of undeclared identifier 'i'
for (intt i = 1; i < 10; i++)
^
It would be nice to generate "unknown type name 'intt'" style errors,
recovering correctly.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs