[Bug analyzer/97116] Fix argument numbering in C++ member function calls

2020-10-07 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97116 David Malcolm changed: What|Removed |Added Resolution|--- |FIXED Status|UNCONFIRMED

[Bug analyzer/97116] Fix argument numbering in C++ member function calls

2020-10-07 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97116 --- Comment #4 from CVS Commits --- The master branch has been updated by David Malcolm : https://gcc.gnu.org/g:2f7c50b7091c09d665aaf27173aacf34c9904e4c commit r11-3701-g2f7c50b7091c09d665aaf27173aacf34c9904e4c Author: David Malcolm Date: Tu

[Bug analyzer/97116] Fix argument numbering in C++ member function calls

2020-10-06 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97116 --- Comment #3 from David Malcolm --- is_method seems to be set by: if (TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE) so perhaps we can simply reimplement this logic

[Bug analyzer/97116] Fix argument numbering in C++ member function calls

2020-10-06 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97116 --- Comment #2 from David Malcolm --- (using "i - is_method" as the value)

[Bug analyzer/97116] Fix argument numbering in C++ member function calls

2020-10-06 Thread dmalcolm at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97116 --- Comment #1 from David Malcolm --- The C++ FE has %P for printing parm indices, with index < 0 printed as "this"; implemented in cp/error.c: parm_to_string as called from cp_printer.