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

            Bug ID: 27464
           Summary: clang doesn't unescape \(\) in response correctly
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

$ cat test.c
void bar() {}
void f() { FOO; }
$ cat foo.rsp
-DFOO=bar\(\)
$ gcc -c test.c @foo.rsp  # works
@ clang -c test.c @foo.rsp
test.c:3:3: error: expected ';' after expression
  FOO;
  ^
<command line>:1:16: note: expanded from here
#define FOO bar\(\)

rsp files (on posix) should be unescaped like shell, and `echo bar\(\)` prints
"bar()" as well.

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

Reply via email to