[LLVMbugs] [Bug 10683] New: Clang preprocessor crashes if the file contains "// \" characters

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 17 00:20:55 PDT 2011


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

           Summary: Clang preprocessor crashes if the file contains "// \"
                    characters
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: eremeev at viva64.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


The Clang preprocessor crashes with signal 1073740791 if the file it is
processing contains the following character sequence:
// \

The last backslash character('\') here must be followed by a newline character,
and the next line after it should be empty. The crash occurs only if the
preprocessor had been launched with -C command line option:
clang.exe" -E -C "crash.cpp"

The crash occurred originally in the file containing the following:

if(GetFileAttributes(dirBuffer) == 0xFFFFFFFF)
{
    //if no, i search in \system32\drivers\

...
}
This code originally had been successfully preprocessed by Visual C++
preprocessor.

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