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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to