[LLVMbugs] [Bug 9861] New: clang -E produces output that clang doesn't like
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 6 15:19:02 PDT 2011
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: unassignedclangbugs at nondot.org
ReportedBy: rafael.espindola at gmail.com
CC: llvmbugs at cs.uiuc.edu
$ 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.
More information about the llvm-bugs
mailing list