Skip to content

clang -E produces output that clang doesn't like #10233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
llvmbot opened this issue May 7, 2011 · 1 comment
Closed

clang -E produces output that clang doesn't like #10233

llvmbot opened this issue May 7, 2011 · 1 comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"

Comments

@llvmbot
Copy link
Member

llvmbot commented May 7, 2011

Bugzilla Link 9861
Resolution FIXED
Resolved on May 22, 2011 17:10
Version unspecified
OS Linux
Reporter LLVM Bugzilla Contributor

Extended Description

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

1 ""

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

1 "" 3

132 "" 3

1 "" 1

1 "" 2

1 "foobar.c" 2

1 "./foobar.h" 1

0 "./foobar.h"

0 "./foobar.h" 3

2 "foobar.c" 2

@lattner
Copy link
Collaborator

lattner commented May 23, 2011

Fixed in r131871, thanks.

@llvmbot llvmbot transferred this issue from llvm/llvm-bugzilla-archive Dec 3, 2021
weliveindetail pushed a commit to weliveindetail/llvm-project that referenced this issue Mar 14, 2025
…rs_load_commands_read_overrun_cherry_pick_stable_20240723

🍒 [Sanitizers][Darwin] Correct iterating of MachO load commands (llvm#130
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from bugzilla clang:frontend Language frontend issues, e.g. anything involving "Sema"
Projects
None yet
Development

No branches or pull requests

2 participants