[Bug c++/79551] New: Better carouse position for not declared errors
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 16 08:53:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79551
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 gnu.org
Reporter: marxin at gcc dot gnu.org
CC: dmalcolm at gcc dot gnu.org
Target Milestone: ---
When reporting usage of an undefined function, we do:
../../gcc/predict.c: In function ‘void
tree_predict_by_opcode(basic_block)’:
../../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));
^~~~~~~~~~
Thanks
More information about the Gcc-bugs
mailing list