Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.13.2, Qt Creator 4.13.3
-
None
Description
Consider the following g++-4.4 output when compiling the attached main.cpp:
{{../reproducer/main.cpp: In function 'int main()':
../reproducer/main.cpp:4: error: 'Foo::Foo()' is private
../reproducer/main.cpp:9: error: within this context}}
Expected behavior:
Qt Creator allows me to go to both the context (line 9) and the source (line 4) of the error.
Actual behavior:
Qt Creator always sends me to line four (see screenshot).
Rationale:
The compiler points out an inconsistency here where the error may either be in the usage context or in the class definition. In order to fix the issue, one likes to jump to both the usage context or the definition.
Possible commit that introduced the regression:
https://code.qt.io/cgit/qt-creator/qt-creator.git/commit/?id=d9dd1f8d527b47fba0cc683f9ea34055e2a7283d
Workaround:
Press "o" when the issue is highlighted to go to compile output which marks the respective lines (with off-by-one errors, see screenshots). Then click the compiler error containing the desired line.