https://bugs.llvm.org/show_bug.cgi?id=48093

            Bug ID: 48093
           Summary: --save-temps generates invalid command lines when
                    reading from stdin or files whose names start with
                    hyphens
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

Testcase:

$ echo 'int main() {}' | clang -x c++ - -o tmp.o --save-temps
error: unknown argument: '-.ii'

It looks like the driver is not properly escaping filenames that might be
confused for command-line arguments to subtools.

Similarly:

$ touch -- -.c
$ clang ./-.c --save-temps
error: unknown argument: '-.i'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to