https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71238
Bug ID: 71238 Summary: Undeclared function message imprecisely points to error column Product: gcc Version: 6.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: b7.10110111 at gmail dot com Target Milestone: --- The following program int main() { int x=myFunc(3234); } gives me the error: test.cpp:3:22: error: ‘myFunc’ was not declared in this scope int x=myFunc(3234); ^ Here the "^" symbol points to the closing parenthesis (and the parenthesis itself is even colored red). But the error is not at that column, but rather at `myFunc` identifier. Similar code but without function call parentheses leads to much more precise error message: test.cpp:3:11: error: ‘myFunc’ was not declared in this scope int x=myFunc/*(3234)*/; ^~~~~~