Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330009 - Sorting of follow-up errors from gcc in Problems tab
Summary: Sorting of follow-up errors from gcc in Problems tab
Status: RESOLVED WORKSFORME
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0.1   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Doug Schaefer CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-11 10:51 EST by David Björkevik CLA
Modified: 2010-12-01 11:50 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Björkevik CLA 2010-11-11 10:51:34 EST
Sometimes gcc/g++ emits follow-up errors with more information, such as "in this context", "instantiated from here" or "candidate is...".

Due to the way errors are sorted in Problems, the relationship between the follow-up error and the original error is lost. This makes it especially hard to debug errors related to the use of templates.

For instance, if the wrong type is used for templates, the main error will show up in libstdc++, and the follow-up error shows where the problem is.
Comment 1 Andrew Gvozdev CLA 2010-11-11 11:07:21 EST
I would recommend to work with Console View on those. You can doubleclick on the error line to navigate to the source code from there.
Comment 2 Andrew Gvozdev CLA 2010-12-01 11:50:26 EST
Actually, there is even a way to set up the Problems View.
1. In View Menu (click the small triangle in right upper corner of the panel, next to "Minimize") select Preferences and add ID to the list of shown columns.
2. In View Menu select "Group By" as None.
3. Select "Sort By" by ID.

This way you gonna get the markers in order of creation, and related ones will be close to each other.