[LLVMbugs] [Bug 12676] New: Clang fails with cryptic error messages if -I ends with a backslash.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Apr 26 11:56:30 PDT 2012


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

             Bug #: 12676
           Summary: Clang fails with cryptic error messages if -I ends
                    with a backslash.
           Product: clang
           Version: 3.0
          Platform: PC
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jujjyl at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Build a standard hello world application hello_world.c and compile it with
clang, by using the following command line:

'clang -v -IC:\Projects -c hello_world.c'
result: http://pastebin.com/gxgtLFJW

Observe that everything works fine. No problem. Adjust the command line to
build just a little by adding a backslash at the end of the -I directive, as
follows

'clang -v -IC:\Projects\ -c hello_world.c'
result: http://pastebin.com/a5u2hTw3

Observe that somehow the command line tokenizing breaks and the user gets
several cryptic error messages.

Expected:

1. Clang allows -I paths to end with a backslash and does not fail, 
or
2. Clang detects -I commands ending to a backslash and issues a descriptive
error message that -I paths are not supposed to end to a backslash.

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