[LLVMbugs] [Bug 8599] New: poor "invalid type name" error for c99/c++ for loop typo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 13 20:18:11 CST 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


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.


More information about the LLVMbugs mailing list