http://llvm.org/bugs/show_bug.cgi?id=9861
Summary: clang -E produces output that clang doesn't like
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
$ cat foobar.c
#include "foobar.h"
$ cat foobar.h
#pragma GCC system_header
$ clang -c foobar.c
$ gcc -c foobar.c
$ gcc -c foobar.c -save-temps
$ cat foobar.i
# 1 "foobar.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "foobar.c"
# 1 "foobar.h" 1
# 1 "foobar.h" 3
# 1 "foobar.c" 2
$ clang -c foobar.c -save-temps
In file included from foobar.c:1:
In file included from foobar.c:1:
./foobar.h:1:3: error: line marker directive requires a positive integer
argument
# 0 "./foobar.h"
^
./foobar.h:2:3: error: line marker directive requires a positive integer
argument
# 0 "./foobar.h" 3
^
2 errors generated.
$ cat foobar.i
# 1 "foobar.c"
# 1 "foobar.c" 1
# 1 "<built-in>" 1
# 1 "<built-in>" 3
# 132 "<built-in>" 3
# 1 "<command line>" 1
# 1 "<built-in>" 2
# 1 "foobar.c" 2
# 1 "./foobar.h" 1
# 0 "./foobar.h"
# 0 "./foobar.h" 3
# 2 "foobar.c" 2
--
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