Bug 40228 - Provide option to show preprocessed line with errors
Summary: Provide option to show preprocessed line with errors
Status: RESOLVED DUPLICATE of bug 24985
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.3.3
: P3 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-23 13:14 UTC by Dr. David Alan Gilbert
Modified: 2009-07-02 23:49 UTC (History)
3 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dr. David Alan Gilbert 2009-05-23 13:14:24 UTC
Hi,
 I think it would be useful to display the preprocessed line with errors (in C/C++ in my case) for those occasions when the problem is related to a macro going wrong.    I suggest this would be an option since most of the time you wouldn't want it.

  Crawling through the output of gcc -E  and trying to find the line that actually corresponds the error is quite hard work, and if the compiler already has the line that it should help us by showing it (possibly with the line before as well?)

Dave
Comment 1 Richard Biener 2009-05-23 17:23:21 UTC
Related to PR24985?
Comment 2 Manuel López-Ibáñez 2009-07-02 23:49:50 UTC
This seems the exact definition of caret diagnostics.

*** This bug has been marked as a duplicate of 24985 ***