LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 4288 - Mixed up # line directives with -E -dD
Summary: Mixed up # line directives with -E -dD
Status: RESOLVED FIXED
Alias: None
Product: clang
Classification: Unclassified
Component: Frontend (show other bugs)
Version: unspecified
Hardware: PC Linux
: P normal
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-31 16:47 PDT by Eli Friedman
Modified: 2010-03-12 00:57 PST (History)
1 user (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eli Friedman 2009-05-31 16:47:29 PDT
Testcase:
#define A A
/* 1
 * 2
 * 3
 * 4
 * 5
 * 6
 * 7
 * 8
 */
#define B B

Run through "clang -x c - -o - -E -dD", produces something like the following (ignoring the predefine buffer):

# 1 "<stdin>" 2
#define A A# 11 "<stdin>"
#define B B
Comment 1 Eli Friedman 2009-06-02 02:55:55 PDT
Fixed in r72724.