Bug ID: 79551
           Summary: Better carouse position for not declared errors
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot
          Reporter: marxin at gcc dot
                CC: dmalcolm at gcc dot
  Target Milestone: ---

When reporting usage of an undefined function, we do:

../../gcc/predict.c: In function ‘void
../../gcc/predict.c:2459:31: error: ‘debug_tree’ was not declared in
this scope
    debug_tree (TREE_TYPE (op0));

I'm recommending to use what we do for for -Wmisleading-indentation:

../../gcc/predict.c:2460:4: note: ...this statement, but the latter
is misleadingly indented as if it is guarded by the ‘if’
    debug_tree (TREE_TYPE (op0));


Reply via email to